nrfxlib API 2.8.99
|
int32_t sdc_hci_get | ( | uint8_t * | p_packet_out, |
uint8_t * | p_msg_type_out ) |
#include <softdevice_controller/include/sdc_hci.h>
Retrieve an HCI packet from the SoftDevice Controller.
This API is non-blocking.
[in,out] | p_packet_out | Buffer where the HCI packet will be stored. If an event is retrieved, the first byte corresponds to the Event Code. If a data packet is retrieved, the first byte corresponds to the Handle. |
[out] | p_msg_type_out | Type of HCI packet produced by the controller. See sdc_hci_msg_type_t for possible values. |
0 | Success |
-NRF_EAGAIN | No event available |
-NRF_EINVAL | Invalid input |