nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ nrf_wifi_hal_init()

struct nrf_wifi_hal_priv * nrf_wifi_hal_init ( struct nrf_wifi_hal_cfg_params cfg_params,
enum nrf_wifi_status(*)(void *mac_ctx, void *event_data, unsigned int len)  intr_callbk_fn,
enum nrf_wifi_status(*)(void *mac_ctx, void *event_data, unsigned int len)  rpu_recovery_callbk_fn 
)

Initialize the HAL layer.

Parameters
cfg_paramsParameters needed to configure the HAL for WLAN operation.
intr_callbk_fnPointer to the callback function which the user of this layer needs to implement to handle events from the RPU.
rpu_recovery_callbk_fnPointer to the callback function which the user of this layer needs to implement to handle RPU recovery.

This API is used to initialize the HAL layer and is expected to be called before using the HAL layer. This API returns a pointer to the HAL context which might need to be passed to further API calls.

Returns
Pointer to instance of HAL layer context.