RTEMS
5.0.0
|
#include <alt_qspi.h>
Data Fields | |
uint32_t | block_size |
uint32_t | page_size |
uint32_t | addr_size |
uint32_t | lower_wrprot_block |
uint32_t | upper_wrprot_block |
bool | wrprot_enable |
Device Size Configuration
This type defines the structure used to specify flash device size and write protect regions.
uint32_t ALT_QSPI_DEV_SIZE_CONFIG_s::addr_size |
Number of bytes used for the flash address. The value is n + 1 based. That is 0 = 1 byte, 1 = 2 bytes, 2 = 3 bytes, 3 = 4 bytes.
uint32_t ALT_QSPI_DEV_SIZE_CONFIG_s::block_size |
Number of bytes per device block. The number is specified as a power of 2. That is 0 = 1 byte, 1 = 2 bytes, ... 16 = 65535 bytes, etc.
uint32_t ALT_QSPI_DEV_SIZE_CONFIG_s::lower_wrprot_block |
The block number that defines the lower block in the range of blocks that is protected from writing. This field is ignored it write protection is disabled.
uint32_t ALT_QSPI_DEV_SIZE_CONFIG_s::page_size |
Number of bytes per device page. This is required by the controller for performing flash writes up to and across page boundaries.
uint32_t ALT_QSPI_DEV_SIZE_CONFIG_s::upper_wrprot_block |
The block number that defines the upper block in the range of blocks that is protected from writing. This field is ignored it write protection is disabled.
bool ALT_QSPI_DEV_SIZE_CONFIG_s::wrprot_enable |
The write region enable value. A value of true enables write protection on the region specified by the lower_wrprot_block and upper_wrprot_block range.