nrfxlib API 2.7.99
Loading...
Searching...
No Matches

◆ sdc_hci_get()

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.

Note
The application should ensure that the size of the provided buffer is at least HCI_MSG_BUFFER_MAX_SIZE bytes.
Parameters
[in,out]p_packet_outBuffer 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_outType of HCI packet produced by the controller. See sdc_hci_msg_type_t for possible values.
Return values
0Success
-NRF_EAGAINNo event available
-NRF_EINVALInvalid input