This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
您好:
首先,很感谢您为我的解答。
在调试CC2541 uart通信时,我们用到的函数:
uint8 HalUARTOpen(uint8 port, halUARTCfg_t *config)
uint16 HalUARTRead(uint8 port, uint8 *buf, uint16 len)
uint16 HalUARTWrite(uint8 port, uint8 *buf, uint16 len)
然后处理函数,uartConfig.callBackFunc = (halUARTCBack_t)npiCBack;相关操作在npiCBack函数里处理收发数据就好了。 我的问题是void HalUARTPoll(void)这个函数作用是什么呢?感觉没有用到?
如果可以还有个问题能为我也解答下嘛?
一般情况,特性值通知功能的句柄,为特殊功能值句柄+1作为其句柄值。这是由于UUID 0x2902定义位置决定的吗?如果UUID 0x2902定义位置改变,特性值通知功能的句柄也不一定是特殊功能值句柄+1作为其句柄值。是吗?