36 #ifndef ti_drivers_xmem_XMEMWFF3__include 37 #define ti_drivers_xmem_XMEMWFF3__include 42 #if defined(__cplusplus) 56 #define XMEM_WORD_SIZE 4 61 #define CONFIG_XMEM_COUNT 1 66 #define XMEM_NUM_HANDLER 16 76 #define XMEM_STATUS_SUCCESS (0) 85 #define XMEM_STATUS_ERROR (-1) 92 #define XMEM_STATUS_TIMEOUT (-3) 101 #define XMEM_STATUS_INV_OFFSET (-4) 109 #define XMEM_STATUS_INV_ALIGNMENT (-5) 118 #define XMEM_STATUS_INV_SIZE (-6) 127 #define XMEM_STATUS_INV_WRITE (-7) 135 #define XMEM_STATUS_VERIFYBUFFER (-8) 144 #define XMEM_STATUS_INVALID_PARAMS (-9) 155 #define XMEM_READ (0x0) 164 #define XMEM_READ_STIG (0x1) 182 #define XMEM_WRITE (0x0) 191 #define XMEM_WRITE_ERASE (0x1) 201 #define XMEM_WRITE_PRE_VERIFY (0x2) 210 #define XMEM_WRITE_POST_VERIFY (0x4) 218 #define XMEM_WRITE_STIG (0x8) 459 int_fast16_t
XMEMWFF3_erase(XMEM_Handle handle,
size_t offset,
size_t size);
532 int_fast16_t
XMEMWFF3_lock(XMEM_Handle handle, uint32_t timeout);
574 int_fast16_t
XMEMWFF3_read(XMEM_Handle handle,
size_t offset,
void *buffer,
size_t bufferSize, uint_fast16_t flags);
637 int_fast16_t
XMEMWFF3_write(XMEM_Handle handle,
size_t offset,
void *buffer,
size_t bufferSize, uint_fast16_t flags);
641 #if defined(__cplusplus) Flash STIG read configuration structure.
Definition: XMEMWFF3.h:270
struct XMEM_Config_ * XMEM_Handle
A handle that is returned from the XMEMWFF3_open() call.
Definition: XMEMWFF3.h:355
size_t regionSize
Definition: XMEMWFF3.h:388
Definition: XMEMWFF3.h:414
Definition: XMEMWFF3.h:406
ADC_Params params
Definition: Driver_Init.h:11
XMEM Global configuration.
Definition: XMEMWFF3.h:368
bool opened
Definition: XMEMWFF3.h:332
void * object
Definition: XMEMWFF3.h:371
Definition: XMEMWFF3.h:404
Definition: XMEMWFF3.h:413
int_fast16_t XMEMWFF3_read(XMEM_Handle handle, size_t offset, void *buffer, size_t bufferSize, uint_fast16_t flags)
Read data from the XMEM region associated with the XMEM_Handle.
uint32_t postStigCfg
Definition: XMEMWFF3.h:258
Definition: XMEMWFF3.h:408
uint32_t preStigCfg
Definition: XMEMWFF3.h:272
uint32_t postStigCfg
Definition: XMEMWFF3.h:273
uint32_t NumOfIteration
Definition: XMEMWFF3.h:287
uint32_t postStigCfg
Definition: XMEMWFF3.h:243
uint8_t XMEMWFF3_getActiveHandlers(void)
Function to get the number of active XMEM handlers.
uint32_t timeOut
Definition: XMEMWFF3.h:289
int_fast16_t XMEMWFF3_lock(XMEM_Handle handle, uint32_t timeout)
Function to lock the XMEM driver.
Definition: XMEMWFF3.h:401
Definition: XMEMWFF3.h:410
size_t regionStartAddr
Definition: XMEMWFF3.h:335
Hardware attributes structure for the XMEMWFF3 driver.
Definition: XMEMWFF3.h:319
Flash register structure for address-data pairs.
Definition: XMEMWFF3.h:227
XMEM_Flash_Idx
External flash device type identifiers.
Definition: XMEMWFF3.h:399
struct XMEM_Config_ XMEM_Config
XMEM Global configuration.
void XMEMWFF3_getObject(XMEM_Handle handle, XMEMWFF3_Object *object)
Function to get the XMEM object.
FlashStigEraseCfg eraseStigCfg
Definition: XMEMWFF3.h:305
size_t regionBase
Definition: XMEMWFF3.h:386
Flash STIG erase configuration structure.
Definition: XMEMWFF3.h:239
FlashType flashType
Definition: XMEMWFF3.h:321
size_t regionBase
Definition: XMEMWFF3.h:334
int_fast16_t XMEMWFF3_close(XMEM_Handle handle)
Function to close an XMEM_Handle.
int_fast16_t XMEMWFF3_erase(XMEM_Handle handle, size_t offset, size_t size)
Erase size bytes of the region beginning at offset bytes from the base of the region referenced by th...
Definition: XMEMWFF3.h:402
uint32_t polarity
Definition: XMEMWFF3.h:290
size_t regionSize
Definition: XMEMWFF3.h:336
void XMEMWFF3_init(void)
Function to initialize the XMEM module.
Flash polling configuration structure.
Definition: XMEMWFF3.h:285
uint32_t command
Definition: XMEMWFF3.h:288
int_fast16_t XMEMWFF3_write(XMEM_Handle handle, size_t offset, void *buffer, size_t bufferSize, uint_fast16_t flags)
Write data to the XMEM region associated with the XMEM_Handle.
void XMEMWFF3_unlock(XMEM_Handle handle)
Function to unlock the XMEM driver.
Definition: XMEMWFF3.h:405
XMEM_Handle XMEMWFF3_open(XMEM_Params *params)
Open an XMEM region for reading and writing.
Definition: XMEMWFF3.h:412
Flash type configuration structure.
Definition: XMEMWFF3.h:300
Definition: XMEMWFF3.h:403
const void * hwAttrs
Definition: XMEMWFF3.h:374
FlashType flashType
Definition: XMEMWFF3.h:349
size_t sectorSize
Definition: XMEMWFF3.h:308
size_t regionStartAddr
Definition: XMEMWFF3.h:387
size_t verifyBufSize
Definition: XMEMWFF3.h:309
uint32_t address
Definition: XMEMWFF3.h:229
Parameters for opening an XMEM region.
Definition: XMEMWFF3.h:384
FlashStigWriteCfg writeStigCfg
Definition: XMEMWFF3.h:304
uint32_t data
Definition: XMEMWFF3.h:230
Definition: XMEMWFF3.h:409
Flash STIG write configuration structure.
Definition: XMEMWFF3.h:255
uintptr_t mutexKey
Definition: XMEMWFF3.h:333
XMEM attributes.
Definition: XMEMWFF3.h:347
size_t deviceNum
Definition: XMEMWFF3.h:337
Definition: XMEMWFF3.h:411
void XMEMWFF3_getAttrs(XMEM_Handle handle, XMEM_Attrs *attrs)
Function to get the XMEM attributes.
uint32_t preStigCfg
Definition: XMEMWFF3.h:257
FlashPollingCfg pollingCfg
Definition: XMEMWFF3.h:307
uint32_t preStigCfg
Definition: XMEMWFF3.h:241
uint32_t mask
Definition: XMEMWFF3.h:291
Runtime state object for the XMEMWFF3 driver instance.
Definition: XMEMWFF3.h:330
uint8_t deviceNum
Definition: XMEMWFF3.h:389
FlashStigReadCfg readStigCfg
Definition: XMEMWFF3.h:303
Definition: XMEMWFF3.h:407
uint32_t StigCfg
Definition: XMEMWFF3.h:242