Nut/OS  4.10.3
API Reference
_AT45D_FLASH Struct Reference

Internal information structure. More...

Collaboration diagram for _AT45D_FLASH:

Data Fields

sf_unit_t dxb_page [FLASH_BUFFERS_AT45D]
 Page number.
uint_fast8_t flags [FLASH_BUFFERS_AT45D]
 Attribute flags.
int dxb_locks [FLASH_BUFFERS_AT45D]
 Lock count.
HANDLE dxb_lque
 Unlock event queue.
uint_fast8_t dxb_pshft
 Page address shift value.
uint8_tdxb_pbuf [FLASH_BUFFERS_AT45D]
 The page buffers.

Detailed Description

Internal information structure.

This structure is mainly used to keep track of the serial flash's page buffers.

Definition at line 75 of file spi_flash_at45d.c.


Field Documentation

sf_unit_t _AT45D_FLASH::dxb_page[FLASH_BUFFERS_AT45D]

Page number.

Contains the number of the pages currently loaded.

Definition at line 80 of file spi_flash_at45d.c.

uint_fast8_t _AT45D_FLASH::flags[FLASH_BUFFERS_AT45D]

Attribute flags.

Contains FLASH_BUFFER_DIRTY, if the buffer has been modified and not yet written back to flash memory.

Definition at line 87 of file spi_flash_at45d.c.

int _AT45D_FLASH::dxb_locks[FLASH_BUFFERS_AT45D]

Lock count.

A buffer must not be written back to flash memory when this counter is not equal to zero.

Definition at line 94 of file spi_flash_at45d.c.

Unlock event queue.

Queued threads waiting for an unlocked buffer.

Definition at line 100 of file spi_flash_at45d.c.

Page address shift value.

Number of bytes to shift the page address for the Dataflash command parameter.

Definition at line 107 of file spi_flash_at45d.c.

uint8_t* _AT45D_FLASH::dxb_pbuf[FLASH_BUFFERS_AT45D]

The page buffers.

Definition at line 110 of file spi_flash_at45d.c.


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