Nut/OS  4.10.3
API Reference
_AT45DIB Struct Reference

Internal information structure. More...

Collaboration diagram for _AT45DIB:

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.

Definition at line 72 of file spi_at45dib.c.


Field Documentation

Page number.

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

Definition at line 77 of file spi_at45dib.c.

Attribute flags.

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

Definition at line 84 of file spi_at45dib.c.

Lock count.

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

Definition at line 91 of file spi_at45dib.c.

Unlock event queue.

Queued threads waiting for an unlocked buffer.

Definition at line 97 of file spi_at45dib.c.

Page address shift value.

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

Definition at line 104 of file spi_at45dib.c.


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