nrfxlib API 3.3.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. For Isochronous Channels the provided buffer should be large enough to contain the maximum supported SDU size. See also sdc_cfg_iso_buffer_cfg_t::rx_sdu_buffer_size and HCI_ISO_DATA_PACKET_MAX_SIZE.
Parameters
[in,out]p_packet_outBuffer where the HCI packet will be stored.
[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