| Electronic Components Datasheet Search |
|
PM0237 Datasheet(PDF) 61 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
PM0237 Datasheet(HTML) 61 Page - STMicroelectronics |
|
61 / 88 page ![]() DocID027104 Rev 2 61/88 PM0237 Design an application using BlueNRG, BlueNRG-MS ACI APIs 88 EVT_BLUE_GAP_PROCEDURE_COMPLETE event is returned with the procedure code set to GAP_GENERAL_DISCOVERY_PROC (0x02). */ evt_gap_procedure_complete *pr = (void*)blue_evt->data; /* evt_gap_procedure_complete parameters: pr->procedure_code: terminated procedure code; pr->status: BLE_STATUS_SUCCESS, BLE_STATUS_FAILED or ERR_AUTH_FAILURE; pr->data[VARIABLE_SIZE]: procedure specific data, if applicable */ /* If needed, add user code for handling the event data */ ..... }/* EVT_BLUE_GAP_PROCEDURE_COMPLETE */ break; }/* switch(blue_evt->ecode) */ }/* EVT_VENDOR */ break; case EVT_LE_META_EVENT: { evt_le_meta_event *evt = (void *)event_pckt->data; switch(evt->subevent) { case EVT_LE_ADVERTISING_REPORT: /* BlueNRG-MS stack */ { le_advertising_info *pr = (void *)(evt->data+1); /* evt->data[0] is number of reports (On BlueNRG-MS is always 1) */ /* le_advertising_info parameters: pr->evt_type: event type (advertising packets types); pr->bdaddr_type: type of the peer address (PUBLIC_ADDR,RANDOM_ADDR); pr->bdaddr: address of the peer device found during scanning; pr->length: length of advertising or scan response data; pr->data_RSSI[]: length advertising or scan response data + RSSI. RSSI is last octect (signed integer). */ /* Add user code for decoding the le_advertising_info event data based on the specific pr->evt_type (ADV_IND, SCAN_RSP, ..)*/ ... }/* EVT_LE_ADVERTISING_REPORT */ break; }/* end switch() */ }/* EVT_LE_META_EVENT */ break; }/* switch(event_pckt->evt)*/ }/* end HCI_Event_CB() */ In particular, in this specific context, the following events are raised on the GAP Central HCI_Event_CB(), as a consequence of the GAP peripheral device in discoverable mode with scan response enabled: |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |