CMSIS-Driver
Version 2.7.1
Peripheral Interface for Middleware and Application Code
|
Data Structures | |
struct | ARM_STORAGE_BLOCK_ATTRIBUTES |
Attributes of the storage range within a storage block. More... | |
struct | ARM_STORAGE_BLOCK |
A storage block is a range of memory with uniform attributes. More... | |
struct | ARM_STORAGE_SECURITY_FEATURES |
struct | ARM_STORAGE_INFO |
struct | ARM_STORAGE_STATUS |
Operating status of the storage controller. More... | |
struct | ARM_STORAGE_CAPABILITIES |
Storage Driver API Capabilities. More... | |
struct | ARM_DRIVER_STORAGE |
Macros | |
#define | ARM_STORAGE_API_VERSION ARM_DRIVER_VERSION_MAJOR_MINOR(1,1) /* API version */ |
#define | _ARM_Driver_Storage_(n) Driver_Storage##n |
#define | ARM_Driver_Storage_(n) _ARM_Driver_Storage_(n) |
#define | ARM_STORAGE_INVALID_OFFSET (0xFFFFFFFFFFFFFFFFULL) |
Invalid address (relative to a storage controller's address space). A storage block may never start at this address. More... | |
#define | ARM_STORAGE_INVALID_ADDRESS (0xFFFFFFFFUL) |
Invalid address within the processor's memory address space. Refer to memory-mapped storage, i.e. ARM_DRIVER_STORAGE::ResolveAddress(). More... | |
#define | ARM_STORAGE_ERROR_NOT_ERASABLE (ARM_DRIVER_ERROR_SPECIFIC - 1) |
Part (or all) of the range provided to Erase() isn't erasable. More... | |
#define | ARM_STORAGE_ERROR_NOT_PROGRAMMABLE (ARM_DRIVER_ERROR_SPECIFIC - 2) |
Part (or all) of the range provided to ProgramData() isn't programmable. More... | |
#define | ARM_STORAGE_ERROR_PROTECTED (ARM_DRIVER_ERROR_SPECIFIC - 3) |
Part (or all) of the range to Erase() or ProgramData() is protected. More... | |
#define | ARM_STORAGE_VALID_BLOCK(BLK) (((BLK)->addr != ARM_STORAGE_INVALID_OFFSET) && ((BLK)->size != 0)) |
#define | ARM_STORAGE_PROGRAMMABILITY_RAM (0x0) |
Values for encoding storage memory-types with respect to programmability. More... | |
#define | ARM_STORAGE_PROGRAMMABILITY_ROM (0x1) |
Read-only memory. More... | |
#define | ARM_STORAGE_PROGRAMMABILITY_WORM (0x2) |
write-once-read-only-memory (WORM). More... | |
#define | ARM_STORAGE_PROGRAMMABILITY_ERASABLE (0x3) |
re-programmable based on erase. Supports multiple writes. More... | |
#define | ARM_RETENTION_WHILE_DEVICE_ACTIVE (0x0) |
Data is retained only during device activity. More... | |
#define | ARM_RETENTION_ACROSS_SLEEP (0x1) |
Data is retained across processor sleep. More... | |
#define | ARM_RETENTION_ACROSS_DEEP_SLEEP (0x2) |
Data is retained across processor deep-sleep. More... | |
#define | ARM_RETENTION_BATTERY_BACKED (0x3) |
Data is battery-backed. Device can be powered off. More... | |
#define | ARM_RETENTION_NVM (0x4) |
Data is retained in non-volatile memory. More... | |
#define | ARM_STORAGE_PROGRAM_CYCLES_INFINITE (0UL) |
Typedefs | |
typedef void(* | ARM_Storage_Callback_t )(int32_t status, ARM_STORAGE_OPERATION operation) |
struct ARM_STORAGE_SECURITY_FEATURES |
Device Data Security Protection Features. Applicable mostly to EXTERNAL_NVM.
#define ARM_STORAGE_API_VERSION ARM_DRIVER_VERSION_MAJOR_MINOR(1,1) /* API version */ |
#define _ARM_Driver_Storage_ | ( | n | ) | Driver_Storage##n |
#define ARM_Driver_Storage_ | ( | n | ) | _ARM_Driver_Storage_(n) |
#define ARM_STORAGE_INVALID_OFFSET (0xFFFFFFFFFFFFFFFFULL) |
Invalid address (relative to a storage controller's address space). A storage block may never start at this address.
#define ARM_STORAGE_INVALID_ADDRESS (0xFFFFFFFFUL) |
Invalid address within the processor's memory address space. Refer to memory-mapped storage, i.e. ARM_DRIVER_STORAGE::ResolveAddress().
#define ARM_STORAGE_ERROR_NOT_ERASABLE (ARM_DRIVER_ERROR_SPECIFIC - 1) |
Part (or all) of the range provided to Erase() isn't erasable.
#define ARM_STORAGE_ERROR_NOT_PROGRAMMABLE (ARM_DRIVER_ERROR_SPECIFIC - 2) |
Part (or all) of the range provided to ProgramData() isn't programmable.
#define ARM_STORAGE_ERROR_PROTECTED (ARM_DRIVER_ERROR_SPECIFIC - 3) |
Part (or all) of the range to Erase() or ProgramData() is protected.
#define ARM_STORAGE_VALID_BLOCK | ( | BLK | ) | (((BLK)->addr != ARM_STORAGE_INVALID_OFFSET) && ((BLK)->size != 0)) |
The check for a valid ARM_STORAGE_BLOCK.
#define ARM_STORAGE_PROGRAMMABILITY_RAM (0x0) |
Values for encoding storage memory-types with respect to programmability.
Please ensure that the maximum of the following memory types doesn't exceed 16; we encode this in a 4-bit field within ARM_STORAGE_INFO::programmability.
#define ARM_STORAGE_PROGRAMMABILITY_ROM (0x1) |
Read-only memory.
#define ARM_STORAGE_PROGRAMMABILITY_WORM (0x2) |
write-once-read-only-memory (WORM).
#define ARM_STORAGE_PROGRAMMABILITY_ERASABLE (0x3) |
re-programmable based on erase. Supports multiple writes.
#define ARM_RETENTION_WHILE_DEVICE_ACTIVE (0x0) |
Data is retained only during device activity.
Values for encoding data-retention levels for storage blocks.
Please ensure that the maximum of the following retention types doesn't exceed 16; we encode this in a 4-bit field within ARM_STORAGE_INFO::retention_level.
#define ARM_RETENTION_ACROSS_SLEEP (0x1) |
Data is retained across processor sleep.
#define ARM_RETENTION_ACROSS_DEEP_SLEEP (0x2) |
Data is retained across processor deep-sleep.
#define ARM_RETENTION_BATTERY_BACKED (0x3) |
Data is battery-backed. Device can be powered off.
#define ARM_RETENTION_NVM (0x4) |
Data is retained in non-volatile memory.
#define ARM_STORAGE_PROGRAM_CYCLES_INFINITE (0UL) |
Infinite or unknown endurance for reprogramming.