Loading...
Searching...
No Matches
Flash Struct Reference

Inherits SPI.

Data Fields

SPI base
 Parent SPI interface.
 
void(* erase )(struct Flash *)
 Chip erase method.
 
void(* readPage )(struct Flash *, uint32_t, volatile uint8_t *)
 Read page method.
 
void(* writePage )(struct Flash *, uint32_t, uint8_t *)
 Write page method.
 
- Data Fields inherited from SPI
DeviceType device
 Enum specifier for device type.
 
SPI_TypeDef * interface
 Pointer to SPI interface struct.
 
GPIO_TypeDef * port
 Pointer to GPIO port struct.
 
unsigned long cs
 Device chip select address.
 
void(* send )(struct SPI *, uint16_t)
 SPI send method.
 
void(* receive )(struct SPI *, volatile uint16_t *)
 SPI receive method.
 
uint16_t(* transmit )(struct SPI *, uint16_t)
 SPI transmit method.
 

Detailed Description

Definition at line 30 of file flash.h.

Field Documentation

◆ erase

void(* erase) (struct Flash *)

Chip erase method.

See also
Flash_erase

Definition at line 34 of file flash.h.

◆ readPage

void(* readPage) (struct Flash *, uint32_t, volatile uint8_t *)

Read page method.

See also
Flash_readPage

Definition at line 35 of file flash.h.

◆ writePage

void(* writePage) (struct Flash *, uint32_t, uint8_t *)

Write page method.

See also
Flash_writePage

Definition at line 36 of file flash.h.


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