Nut/OS  5.0.5
API Reference
_AT45DIB Struct Reference

Internal information structure. More...

Collaboration diagram for _AT45DIB:
[legend]

Data Fields

sf_unit_t dib_page [2]
 Page number.
uint_fast8_t flags [2]
 Attribute flags.
int dib_locks [2]
 Lock count.
HANDLE dib_lque
 Unlock event queue.
uint_fast8_t dib_pshft
 Page address shift value.

Detailed Description

Internal information structure.

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


Field Documentation

Page number.

Contains the number of the pages currently loaded into the RAM buffers.

Attribute flags.

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

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.


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