nrfxlib API 0.1.0
|
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.
hal_ctx | Pointer to HAL context. |
cmd | Pointer to command data. |
cmd_size | Size 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