Mistake on this page?
Report an issue in GitHub or email us
Data Fields
whd_resource_source Struct Reference

Interface to a data source that provides external resources to the radio driver. More...

#include <whd_resource_api.h>

Data Fields

uint32_t(* whd_resource_size )(whd_driver_t whd_drv, whd_resource_type_t resource, uint32_t *size_out)
 Gets the size of the resource for respective resource type. More...
 
uint32_t(* whd_get_resource_block )(whd_driver_t whd_drv, whd_resource_type_t type, uint32_t blockno, const uint8_t **data, uint32_t *size_out)
 Gets the resource block for specified resource type. More...
 
uint32_t(* whd_get_resource_no_of_blocks )(whd_driver_t whd_drv, whd_resource_type_t type, uint32_t *block_count)
 Gets block count for the specified resource_type. More...
 
uint32_t(* whd_get_resource_block_size )(whd_driver_t whd_drv, whd_resource_type_t type, uint32_t *size_out)
 Gets block size for the specified resource_type. More...
 

Detailed Description

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.

Definition at line 71 of file whd_resource_api.h.

Field Documentation

uint32_t(* whd_get_resource_block) (whd_driver_t whd_drv, whd_resource_type_t type, uint32_t blockno, const uint8_t **data, uint32_t *size_out)

Gets the resource block for specified resource type.

Parameters
whd_drvPointer to handle instance of the driver
typeType of resource - WHD_RESOURCE_WLAN_FIRMWARE, WHD_RESOURCE_WLAN_NVRAM, WHD_RESOURCE_WLAN_CLM
blocknoThe number of block
dataPointer to a block of data
size_outSize of the resource
Returns
WHD_SUCCESS or error code

Definition at line 96 of file whd_resource_api.h.

uint32_t(* whd_get_resource_block_size) (whd_driver_t whd_drv, whd_resource_type_t type, uint32_t *size_out)

Gets block size for the specified resource_type.

Parameters
whd_drvPointer to handle instance of the driver
typeType of resources - WHD_RESOURCE_WLAN_FIRMWARE, WHD_RESOURCE_WLAN_NVRAM, WHD_RESOURCE_WLAN_CLM
size_outPointer to store size of the block
Returns
WHD_SUCCESS or error code

Definition at line 119 of file whd_resource_api.h.

uint32_t(* whd_get_resource_no_of_blocks) (whd_driver_t whd_drv, whd_resource_type_t type, uint32_t *block_count)

Gets block count for the specified resource_type.

Parameters
whd_drvPointer to handle instance of the driver
typeType of resource - WHD_RESOURCE_WLAN_FIRMWARE, WHD_RESOURCE_WLAN_NVRAM, WHD_RESOURCE_WLAN_CLM
block_countPointer to store block count for the resource
Returns
WHD_SUCCESS or error code

Definition at line 108 of file whd_resource_api.h.

uint32_t(* whd_resource_size) (whd_driver_t whd_drv, whd_resource_type_t resource, uint32_t *size_out)

Gets the size of the resource for respective resource type.

Parameters
whd_drvPointer to handle instance of the driver
resourceType of resource - WHD_RESOURCE_WLAN_FIRMWARE, WHD_RESOURCE_WLAN_NVRAM, WHD_RESOURCE_WLAN_CLM
size_outSize of the resource
Returns
WHD_SUCCESS or error code

Definition at line 83 of file whd_resource_api.h.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.