| 数据搜索系统,热门电子元器件搜索 |
|
PM0237 数据表(PDF) 48 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
PM0237 数据表(HTML) 48 Page - STMicroelectronics |
|
48 / 88 page ![]() Design an application using BlueNRG, BlueNRG-MS ACI APIs PM0237 48/88 DocID027104 Rev 2 3.2 BlueNRG, BlueNRG-MS events and events Callback Whenever there is an ACI event to be processed, the ACI framework notifies this event to the user application through the HCI_Event_CB() callback. The HCI_Event_CB() callback is called within the HCI_Process() on file hci.c. As a consequence, user application is requested to : 1. Define the void HCI_Event_CB(void *pckt) function within his main application (pckt is a pointer to the received ACI packet) 2. Based on its own application scenario, the user has to identify the required device events to be detected and handled and the application specific actions to be done as consequence of such events. When implementing a BLE application, the most common and widely used device events are the ones related to the discovery, connection, terminate procedures, services and characteristics discovery procedures, attribute modified events on a GATT server and attribute notification/ indication events on a GATT client. Table 33. ACI: main events, sub-events Event/sub-event Description Main event Where EVT_DISCONN_COMPLETE A connection is terminated NA GAP central/ peripheral EVT_LE_CONN_COMPLETE Indicates to both of the Hosts forming the connection that a new connection has been established EVT_LE_META_ EVENT GAP central/ peripheral EVT_BLUE_GATT_ATTRIBUTE_MODIFIED Generated by the GATT server when a client modifies any attribute on the server, if event is enabled. EVT_VENDOR GATT server EVT_BLUE_GATT_NOTIFICATION Generated by the GATT client when a server notifies any attribute on the client EVT_VENDOR GATT client EVT_BLUE_GATT_INDICATION Generated by the GATT client when a server indicates any attribute on the client EVT_VENDOR GATT client EVT_BLUE_GAP_PASS_KEY_REQUEST Generated by the Security manager to the application when a passkey is required for pairing. When this event is received, the application has to respond with the aci_gap_pass_key_response () API EVT_VENDOR GAP central/ peripheral EVT_BLUE_GAP_PAIRING_CMPLT Generated when the pairing process has completed successfully or a pairing procedure timeout has occurred or the pairing has failed EVT_VENDOR GAP central/ peripheral |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |