Device interface for various SPI connected NVRAM. More...
Device interface for various SPI connected NVRAM.
Tested on:
Definition in file nvram-spi.h.
 Include dependency graph for nvram-spi.h:
 Include dependency graph for nvram-spi.h:Go to the source code of this file.
| Data Structures | |
| struct | nvram_spi_params | 
| Bus parameters for SPI NVRAM.  More... | |
| typedef struct nvram_spi_params | nvram_spi_params_t | 
| Bus parameters for SPI NVRAM. | |
| int | nvram_spi_init (nvram_t *dev, nvram_spi_params_t *spi_params, size_t size) | 
| Initialize an nvram_t structure with SPI settings. | |
| int nvram_spi_init | ( | nvram_t * | dev, | 
| nvram_spi_params_t * | spi_params, | ||
| size_t | size ) | 
Initialize an nvram_t structure with SPI settings.
This will also initialize the CS pin as a GPIO output, without pull resistors.
| [out] | dev | Pointer to NVRAM device descriptor | 
| [out] | spi_params | Pointer to SPI settings | 
| [in] | size | Device capacity |