?? 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 + -