L14-Click 1.0
STM32WLE5CC LoRaWAN Sensor Platform
Loading...
Searching...
No Matches
flash_at25CS_t Struct Reference

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

Detailed Description

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.

Field Documentation

◆ CSPin

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().

◆ CSPort

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().

◆ Is

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().

◆ Size

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

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().


The documentation for this struct was generated from the following file: