📄 rds_tx_demo.c
字号:
#include "Si47xx_drv.h"
T_ERROR_OP Si47XX_TX_RDS_RT_DEMO(void)
{
char text_string[] = "This is Silabs!";
char *text_string_p = &(text_string[0]);
unsigned char i,j,temp_buff[6];
temp_buff[0] = 0x20;
temp_buff[1] = 0;
for(i=0; i<(sizeof(text_string)-1)/4; i++)
{
temp_buff[2] = (unsigned char)(*(text_string_p++));
temp_buff[3] = (unsigned char)(*(text_string_p++));
temp_buff[4] = (unsigned char)(*(text_string_p++));
temp_buff[5] = (unsigned char)(*(text_string_p++));
Si47XX_TX_RDS_Circular(0, &(temp_buff[0]));
temp_buff[1]++;
}
j = 2;
for(i=0; i<(sizeof(text_string)-1)%4; i++)
{
temp_buff[j++] = (unsigned char)(*(text_string_p++));
}
temp_buff[j] = 0x0d;
Si47XX_TX_RDS_Circular(0, &(temp_buff[0]));
return OK;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -