Device descriptor for serial flash memory devices. More...
Device descriptor for serial flash memory devices.
This is an extension of the mtd_dev_t
struct
Definition at line 124 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_params_t * | params |
SPI NOR params. | |
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 | 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... | |
uint32_t mtd_spi_nor_t::page_addr_mask |
bitmask to corresponding to the page address
Computed by mtd_spi_nor_init, no need to touch outside the driver.
Definition at line 134 of file mtd_spi_nor.h.
uint8_t mtd_spi_nor_t::page_addr_shift |
number of right shifts to get the address to the start of the page
Computed by mtd_spi_nor_init, no need to touch outside the driver.
Definition at line 146 of file mtd_spi_nor.h.
uint32_t mtd_spi_nor_t::sec_addr_mask |
bitmask to corresponding to the sector address
Computed by mtd_spi_nor_init, no need to touch outside the driver.
Definition at line 140 of file mtd_spi_nor.h.
uint8_t mtd_spi_nor_t::sec_addr_shift |
number of right shifts to get the address to the start of the sector
Computed by mtd_spi_nor_init, no need to touch outside the driver.
Definition at line 152 of file mtd_spi_nor.h.