WHD Resource API¶
Functions that enable WHD to download WLAN firmware, NVRAM and CLM BLOB on a particular hardware platform.
- #include <whd_resource_api.h>
Interface to a data source that provides external resources to the radio driver.
This data structure defines a source for data generally intended to be downloaded to the radio device.
The data is assumed to be available as a set of blocks that are all the same size with the exception of the last block. The whd_get_resource_block_size function returns this block size. The whd_get_resource_block call returns a pointer to a block of data. The actual storage for the data block is owned by the data source, so only a pointer to the block is returned. There are two predominate use cases. If the data is stored in the internal flash memory, then whd_get_resource_no_of_blocks will return 1 and a call to whd_get_resource_block will return a pointer to the data image with the size being the size of the data image. If the data is stored in an external flash of some type, each block of data can be read from the external flash one at a time. whd_get_resource_no_of_blocks will return the physical number of blocks in the data and each call to whd_get_resource_block will read data from the external memory and make it available via an internal buffer.