Loading...
Searching...
No Matches
mtd_spi_nor_t Struct Reference

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

Detailed Description

Device descriptor for serial flash memory devices.

This is an extension of the mtd_dev_t struct

Definition at line 123 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_tparams
 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
 
uint32_t sec_addr_mask
 bitmask to corresponding to the sector address
 
uint8_t page_addr_shift
 number of right shifts to get the address to the start of the page
 
uint8_t sec_addr_shift
 number of right shifts to get the address to the start of the sector
 
uint8_t addr_width
 number of address bytes
 

Field Documentation

◆ addr_width

uint8_t mtd_spi_nor_t::addr_width

number of address bytes

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

Definition at line 157 of file mtd_spi_nor.h.

◆ base

mtd_dev_t mtd_spi_nor_t::base

inherit from mtd_dev_t object

Definition at line 124 of file mtd_spi_nor.h.

◆ jedec_id

mtd_jedec_id_t mtd_spi_nor_t::jedec_id

JEDEC ID of the chip.

Definition at line 126 of file mtd_spi_nor.h.

◆ page_addr_mask

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 133 of file mtd_spi_nor.h.

◆ page_addr_shift

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 145 of file mtd_spi_nor.h.

◆ params

const mtd_spi_nor_params_t* mtd_spi_nor_t::params

SPI NOR params.

Definition at line 125 of file mtd_spi_nor.h.

◆ sec_addr_mask

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 139 of file mtd_spi_nor.h.

◆ sec_addr_shift

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 151 of file mtd_spi_nor.h.


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