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

◆ nrf_wifi_hal_ctrl_cmd_send()

enum nrf_wifi_status nrf_wifi_hal_ctrl_cmd_send ( struct nrf_wifi_hal_dev_ctx hal_ctx,
void *  cmd,
unsigned int  cmd_size 
)

Send a control command to the RPU.

Parameters
hal_ctxPointer to HAL context.
cmdPointer to command data.
cmd_sizeSize of the command data pointed to by @cmd.

This function takes care of sending a command to the RPU. It does the following:

- Fragments a command into smaller chunks if the size of a command is
  greater than %MAX_CMD_SIZE.
- Queues up the command(s) to the HAL command queue.
- Calls a function to further process the commands queued up in the HAL
  command queue which handles it by:

      - Waiting for the RPU to be ready to handle a command.
      - Copies the command to the GRAM memory and indicates to the RPU
        that a command has been posted
Returns
The status of the operation.