- 添加 ble_serial_module.c 实现蓝牙串口功能 - 添加 ble_serial_rx_event 和 ble_serial_tx_event 事件定义及实现 - 在 CMakeLists.txt 中注册新的源文件和事件 - 配置蓝牙 L2CAP MTU 和缓冲区大小参数 - 修改 usb_cdc_test_module 支持通过蓝牙发送测试消息 - 实现蓝牙连接状态管理及数据收发功能
23 lines
419 B
C
23 lines
419 B
C
#ifndef BLINKY_BLE_SERIAL_TX_EVENT_H_
|
|
#define BLINKY_BLE_SERIAL_TX_EVENT_H_
|
|
|
|
#include <app_event_manager.h>
|
|
#include <app_event_manager_profiler_tracer.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct ble_serial_tx_event {
|
|
struct app_event_header header;
|
|
struct event_dyndata dyndata;
|
|
};
|
|
|
|
APP_EVENT_TYPE_DYNDATA_DECLARE(ble_serial_tx_event);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* BLINKY_BLE_SERIAL_TX_EVENT_H_ */
|