nrfxlib API 0.1.0
|
Header containing the OPs declarations for the Bus Abstraction Layer (BAL) of the Wi-Fi driver. More...
#include <bal_ops.h>
Data Fields | |
void *(* | init )(void *cfg_params, enum nrf_wifi_status(*intr_callbk_fn)(void *hal_ctx)) |
Initialize the bus. | |
void(* | deinit )(void *bus_priv) |
Deinitialize the bus. | |
void *(* | dev_add )(void *bus_priv, void *bal_dev_ctx) |
Add a device to the bus. | |
void(* | dev_rem )(void *bus_dev_ctx) |
Remove a device from the bus. | |
enum nrf_wifi_status(* | dev_init )(void *bus_dev_ctx) |
Initialize a device on the bus. | |
void(* | dev_deinit )(void *bus_dev_ctx) |
Deinitialize a device on the bus. | |
unsigned int(* | read_word )(void *bus_dev_ctx, unsigned long addr_offset) |
Read a word from the bus. | |
void(* | write_word )(void *bus_dev_ctx, unsigned long addr_offset, unsigned int val) |
Write a word to the bus. | |
void(* | read_block )(void *bus_dev_ctx, void *dest_addr, unsigned long src_addr_offset, size_t len) |
Read a block of data from the bus. | |
void(* | write_block )(void *bus_dev_ctx, unsigned long dest_addr_offset, const void *src_addr, size_t len) |
Write a block of data to the bus. | |
unsigned long(* | dma_map )(void *bus_dev_ctx, unsigned long virt_addr, size_t len, enum nrf_wifi_osal_dma_dir dma_dir) |
Map a DMA buffer. | |
unsigned long(* | dma_unmap )(void *bus_dev_ctx, unsigned long phy_addr, size_t len, enum nrf_wifi_osal_dma_dir dma_dir) |
Unmap a DMA buffer. | |
Header containing the OPs declarations for the Bus Abstraction Layer (BAL) of the Wi-Fi driver.
Ops to be provided by a particular bus implementation.
This structure defines the operations that need to be implemented by a specific bus implementation.