|
L14-Click 1.0
STM32WLE5CC LoRaWAN Sensor Platform
|
Configuration and state descriptor for one AT25EU0041A flash chip. Pass a pointer to this struct to every flash_at25_XXX function. Populate the IN fields before calling flash_at25_Init(); the OUT fields are filled by the initialisation routine. More...
#include <flash_at25.h>
Data Fields | |
| SPI_HandleTypeDef * | Spi |
| GPIO_TypeDef * | CSPort |
| uint16_t | CSPin |
| int8_t | Is |
| uint32_t | Size: 24 |
Configuration and state descriptor for one AT25EU0041A flash chip. Pass a pointer to this struct to every flash_at25_XXX function. Populate the IN fields before calling flash_at25_Init(); the OUT fields are filled by the initialisation routine.
Definition at line 33 of file flash_at25.h.
| uint16_t flash_at25CS_t::CSPin |
IN GPIO pin number of the chip-select line
Definition at line 37 of file flash_at25.h.
Referenced by flash_Select(), and flash_Unselect().
| GPIO_TypeDef* flash_at25CS_t::CSPort |
IN GPIO port of the chip-select (CS/NSS) pin
Definition at line 36 of file flash_at25.h.
Referenced by flash_Select(), and flash_Unselect().
| int8_t flash_at25CS_t::Is |
OUT Set to 1 by flash_at25_Init() if the chip was identified, 0 otherwise
Definition at line 38 of file flash_at25.h.
Referenced by flash_at25_Init(), flash_at25_Is(), flash_at25_Read(), and flash_WritePage().
| uint32_t flash_at25CS_t::Size |
OUT Total usable memory in bytes (e.g. 524288 for the 4 Mbit / 512 KB variant)
Definition at line 39 of file flash_at25.h.
Referenced by flash_at25_Init().
| SPI_HandleTypeDef* flash_at25CS_t::Spi |
IN SPI handle used to communicate with the chip
Definition at line 35 of file flash_at25.h.
Referenced by flash_at25_Init(), flash_at25_Read(), flash_WritePage(), flashNew_WaitReadyWithTimeout(), and flashNew_WriteEnableVerified().