mtd_spi_nor_params_t Struct Reference

Compile-time parameters for a serial flash device. More...

Detailed Description

Compile-time parameters for a serial flash device.

Definition at line 102 of file mtd_spi_nor.h.

#include <mtd_spi_nor.h>

Data Fields

const mtd_spi_nor_opcode_topcode
 Opcode table for the device.
 
uint32_t wait_chip_erase
 Full chip erase wait time in µs.
 
uint32_t wait_64k_erase
 64KB page erase wait time in µs
 
uint32_t wait_32k_erase
 32KB page erase wait time in µs
 
uint32_t wait_sector_erase
 4KB sector erase wait time in µs
 
uint32_t wait_chip_wake_up
 Chip wake up time in µs.
 
spi_clk_t clk
 SPI clock.
 
uint16_t flag
 Config flags.
 
spi_t spi
 SPI bus the device is connected to.
 
spi_mode_t mode
 SPI mode.
 
gpio_t cs
 CS pin GPIO handle.
 
gpio_t wp
 Write Protect pin GPIO handle.
 
gpio_t hold
 HOLD pin GPIO handle.
 
uint8_t addr_width
 Number of bytes in addresses, usually 3 for small devices.
 

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