Loading...
Searching...
No Matches
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.
 

Field Documentation

◆ clk

spi_clk_t mtd_spi_nor_params_t::clk

SPI clock.

Definition at line 109 of file mtd_spi_nor.h.

◆ cs

gpio_t mtd_spi_nor_params_t::cs

CS pin GPIO handle.

Definition at line 113 of file mtd_spi_nor.h.

◆ flag

uint16_t mtd_spi_nor_params_t::flag

Config flags.

Definition at line 110 of file mtd_spi_nor.h.

◆ hold

gpio_t mtd_spi_nor_params_t::hold

HOLD pin GPIO handle.

Definition at line 115 of file mtd_spi_nor.h.

◆ mode

spi_mode_t mtd_spi_nor_params_t::mode

SPI mode.

Definition at line 112 of file mtd_spi_nor.h.

◆ opcode

const mtd_spi_nor_opcode_t* mtd_spi_nor_params_t::opcode

Opcode table for the device.

Definition at line 103 of file mtd_spi_nor.h.

◆ spi

spi_t mtd_spi_nor_params_t::spi

SPI bus the device is connected to.

Definition at line 111 of file mtd_spi_nor.h.

◆ wait_32k_erase

uint32_t mtd_spi_nor_params_t::wait_32k_erase

32KB page erase wait time in µs

Definition at line 106 of file mtd_spi_nor.h.

◆ wait_64k_erase

uint32_t mtd_spi_nor_params_t::wait_64k_erase

64KB page erase wait time in µs

Definition at line 105 of file mtd_spi_nor.h.

◆ wait_chip_erase

uint32_t mtd_spi_nor_params_t::wait_chip_erase

Full chip erase wait time in µs.

Definition at line 104 of file mtd_spi_nor.h.

◆ wait_chip_wake_up

uint32_t mtd_spi_nor_params_t::wait_chip_wake_up

Chip wake up time in µs.

Definition at line 108 of file mtd_spi_nor.h.

◆ wait_sector_erase

uint32_t mtd_spi_nor_params_t::wait_sector_erase

4KB sector erase wait time in µs

Definition at line 107 of file mtd_spi_nor.h.

◆ wp

gpio_t mtd_spi_nor_params_t::wp

Write Protect pin GPIO handle.

Definition at line 114 of file mtd_spi_nor.h.


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