SDK使用dis_init(CONFIG_SOC, "PT corp.");初始化设备信息,其定义: __init_once_text void dis_init(const char *model, const char *manuf) { dis_model = model; dis_manuf = manuf; bt_gatt_service_register(&dis_svc); } 从上面可以看到该设备的型号是CONFIG_SOC的值“actions_gl5601a”,制造...
(1)在bsp_bt.c文件添加bsp_spp_disinit函数 (2)在ble_connect_callback函数成功连接BLE之后,对...
dis_init(CONFIG_SOC, "PT corp.");/* TODO */ if (!use_wp_profie) { HidInit(&hidAppHidConfig); hog_init(); } else { wp_init(); } #if CONFIG_OTA_WITH_APP wdxs_profile_init(); #endif memset((void *)Image$$RW_IRAM_INIT_ONCE$$Base, 0, (u32_t)Image$$RW_IRAM3$$Base ...
Solutions By company size Enterprises Small and medium teams Startups By use case DevSecOps DevOps CI/CD View all use cases By industry Healthcare Financial services Manufacturing Government View all industries View all solutions Resources Topics AI DevOps Security Software Development...
(1) Profile 调用 GAP API 函数 GAP_DeviceInit 初始化设备;、 (2) GAP 进行初始化并返回 SUCCESS(0x00); (3) 初始化之完成后,BLE 协议栈发送 OSAL 消息,外围角色 profile 的头事件值为 GAP_MSG_EVENT,并且操作码为 GAP_DEVICE_INIT_DONE_EVENT; ...
services_init()初始化程序中的三个服务:ble_dis.c, ble_bas.c, ble_hrs.c 1/**@brief Function for initializing the services that will be used by the application.2*3* @details Initialize the Heart Rate, Battery and Device Information services.4*/5staticvoidservices_init(void)6{7uint32_t ...
BLE蓝牙遥控器设计方案
r_ble_ll_conn_env_init = 0x40000d80; r_ble_ll_conn_ext_master_init = 0x40000d84; r_ble_ll_conn_find_active_conn = 0x40000d88; r_ble_ll_conn_get_active_conn = 0x40000d8c; @@ -759,16 +742,13 @@ r_ble_ll_conn_hci_rd_chan_map = 0x40000dc8; r_ble_ll_conn_hci_rd_re...
int main(void) { uint8 OldKeyValue = 0; uint8 NewKeyValue = 0; SysStartXOSC(); LCD12864_Init(); LCD12864_DisStr(1, " Key Test"); // 按键初始化 P0SEL &= ~0X01; // 设置为 IO功能 P0DIR &= ~0X01; // 设置为输入功能 while(1) { NewKeyValue = KeyValue(); // 读取按键...
SYD8801 API解析【ble_sched_execute】【BLE_SendData】【ble_init】 : 操作内部3Kfalsh的API是ReadProfileData和WriteProfileData,这两个函数的最终操作依旧是在ble_sched_execute函数中进行的,所以不会阻塞协议栈,可以在...BLE_GATT_NOTIFICATION:通知形式数据;BLE_GATT_INDICATION:指示形式数据 }; 这里的hdl是特性...