mtd_spi_nor_t Struct Reference

Device descriptor for serial flash memory devices. More...

Detailed Description

This is an extension of the mtd_dev_t struct

Definition at line 91 of file mtd_spi_nor.h.

#include <mtd_spi_nor.h>

Data Fields

mtd_dev_t base
 inherit from mtd_dev_t object
 
const mtd_spi_nor_opcode_topcode
 Opcode table for the device.
 
spi_t spi
 SPI bus the device is connected to.
 
gpio_t cs
 CS pin GPIO handle.
 
spi_mode_t mode
 SPI mode.
 
spi_clk_t clk
 SPI clock.
 
uint16_t flag
 Config flags.
 
mtd_jedec_id_t jedec_id
 JEDEC ID of the chip.
 
uint32_t page_addr_mask
 bitmask to corresponding to the page address More...
 
uint32_t sec_addr_mask
 bitmask to corresponding to the sector address More...
 
uint8_t addr_width
 Number of bytes in addresses, usually 3 for small devices.
 
uint8_t page_addr_shift
 number of right shifts to get the address to the start of the page More...
 
uint8_t sec_addr_shift
 number of right shifts to get the address to the start of the sector More...
 

Field Documentation

◆ page_addr_mask

uint32_t mtd_spi_nor_t::page_addr_mask

Computed by mtd_spi_nor_init, no need to touch outside the driver.

Definition at line 105 of file mtd_spi_nor.h.

◆ page_addr_shift

uint8_t mtd_spi_nor_t::page_addr_shift

Computed by mtd_spi_nor_init, no need to touch outside the driver.

Definition at line 118 of file mtd_spi_nor.h.

◆ sec_addr_mask

uint32_t mtd_spi_nor_t::sec_addr_mask

Computed by mtd_spi_nor_init, no need to touch outside the driver.

Definition at line 111 of file mtd_spi_nor.h.

◆ sec_addr_shift

uint8_t mtd_spi_nor_t::sec_addr_shift

Computed by mtd_spi_nor_init, no need to touch outside the driver.

Definition at line 124 of file mtd_spi_nor.h.


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