Nut/OS  5.0.5
API Reference
_AT45D_FLASH Struct Reference

Internal information structure. More...

Collaboration diagram for _AT45D_FLASH:
[legend]

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.


Field Documentation

sf_unit_t _AT45D_FLASH::dxb_page[FLASH_BUFFERS_AT45D]

Page number.

Contains the number of the pages currently loaded.

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.

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.

Unlock event queue.

Queued threads waiting for an unlocked buffer.

Page address shift value.

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

uint8_t* _AT45D_FLASH::dxb_pbuf[FLASH_BUFFERS_AT45D]

The page buffers.


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