目录
循环体
循环体中,怎么读取、处理数据
packet_handler
上面各层如何处理数据
谁触发了数据的传输?
硬件相关的数据有4类
循环体
BTStack针对不同的运行环境,抽象出了对应的btstack_run_loop结构体,共成员为:
比如其中的execute成员很重要,它是一个循环,在循环中等待、读取、处理函数。
btstack_run_loop_freertos_execute它是一个循环,在循环中等待、读取、处理函数
static void btstack_run_loop_freertos_execute(void) {log_debug("RL: execute");run_loop_exit_requested = false;while (true) {// process d