191 #ifndef ti_drivers_nvs_NVSSPI25X__include 192 #define ti_drivers_nvs_NVSSPI25X__include 199 #if defined(__cplusplus) 212 #define NVSSPI25X_CMD_MASS_ERASE (NVS_CMD_RESERVED + 0) 224 #define NVSSPI25X_SPI_MANAGES_CS ((uint16_t)(~0)) 340 extern void NVSSPI25X_close(
NVS_Handle handle);
341 extern int_fast16_t NVSSPI25X_control(
NVS_Handle handle, uint_fast16_t cmd, uintptr_t arg);
342 extern int_fast16_t NVSSPI25X_erase(
NVS_Handle handle,
size_t offset,
size_t size);
344 extern void NVSSPI25X_init(
void);
345 extern int_fast16_t NVSSPI25X_lock(
NVS_Handle handle, uint32_t timeout);
347 extern int_fast16_t NVSSPI25X_read(
NVS_Handle handle,
size_t offset,
void *buffer,
size_t bufferSize);
348 extern void NVSSPI25X_unlock(
NVS_Handle handle);
349 extern int_fast16_t NVSSPI25X_write(
NVS_Handle handle,
353 uint_fast16_t flags);
357 extern void NVSSPI25X_initSpiCs(
NVS_Handle spiHandle, uint16_t csId);
358 extern void NVSSPI25X_deinitSpiCs(
NVS_Handle spiHandle, uint16_t csId);
359 extern void NVSSPI25X_assertSpiCs(
NVS_Handle spiHandle, uint16_t csId);
360 extern void NVSSPI25X_deassertSpiCs(
NVS_Handle spiHandle, uint16_t csId);
364 #if defined(__cplusplus) ADC_Params params
Definition: Driver_Init.h:11
Definition: NVSSPI25X.h:328
NVS attributes.
Definition: NVS.h:495
Serial Peripheral Interface (SPI) Driver Interface.
const NVS_FxnTable NVSSPI25X_fxnTable
NVSSPI25X attributes.
Definition: NVSSPI25X.h:295
uint8_t * verifyBuf
Definition: NVSSPI25X.h:300
SPI_Handle spiHandle
Definition: NVSSPI25X.h:331
uint32_t spiBitRate
Definition: NVSSPI25X.h:304
uint16_t spiCsnGpioIndex
SPI Flash Chip Select GPIO index.
Definition: NVSSPI25X.h:312
uint16_t spiIndex
Definition: NVSSPI25X.h:303
size_t verifyBufSize
Definition: NVSSPI25X.h:301
uint32_t statusPollDelayUs
External Flash Status Poll Delay.
Definition: NVSSPI25X.h:320
size_t regionBaseOffset
Definition: NVSSPI25X.h:297
SPI_Handle * spiHandle
Definition: NVSSPI25X.h:302
bool opened
Definition: NVSSPI25X.h:330
NVS Parameters.
Definition: NVS.h:483
SPI Global configuration.
Definition: SPI.h:745
size_t sectorBaseMask
Definition: NVSSPI25X.h:332
size_t sectorSize
Definition: NVSSPI25X.h:299
NVS Global configuration.
Definition: NVS.h:621
size_t regionSize
Definition: NVSSPI25X.h:298
The definition of an NVS function table that contains the required set of functions to control a spec...
Definition: NVS.h:577