TI中文支持网
TI专业的中文技术问题搜集分享网站

sensor controller 上往uart和终端写数据的函数方法是什么? printf用不了

Susan Yang:

In order to see the data on your PC, you will need to select the proper DIO so that the emulated UART from the SC will be sent to the XDS110's UART backchannel pins. Otherwise, the data will be sent out from the CC2640R2F, but will never be converted to USB logic levels to be sent to the PC. You can verify the UART is working by probing the pins that connect to the XDS110.

user6123042:

回复 Susan Yang:

那对应的方法函数是谁?

Susan Yang:

回复 user6123042:

// UART RX FIFO access functions
void scifUartSetRxFifoThr(uint16_t threshold);
uint32_t scifUartGetRxFifoCount(void);
uint16_t scifUartRxGetChar(void);
void scifUartRxGetChars(char* pBuffer, uint32_t count);
void scifUartRxGetCharsWithFlags(uint16_t* pBuffer, uint32_t count);// UART TX FIFO access functions
void scifUartSetTxFifoThr(uint16_t threshold);
uint32_t scifUartGetTxFifoCount(void);
void scifUartTxPutChar(char c);
void scifUartTxPutCharDelayed(char c, uint8_t delay);
void scifUartTxPutChars(char* pBuffer, uint32_t count);

可以查看 默认路径

Texas Instruments\Sensor Controller Studio\examples\uart_emulator_launchpad\source 下的 scif.c

Susan Yang:

回复 user6123042:

另外可以参考之前工程师分享的工程

e2echina.ti.com/…/160488

user6123042:

回复 Susan Yang:

我这儿默认路径下没有uart_emulator_launchpad\项目

Susan Yang:

回复 user6123042:

您在Sensor Controller Studio这个GUI下打开uart_emulator_launchpad例程了吗?

赞(0)
未经允许不得转载:TI中文支持网 » sensor controller 上往uart和终端写数据的函数方法是什么? printf用不了
分享到: 更多 (0)