Nut/OS  4.10.3
API Reference
XgAt54dib

Data Structures

struct  _AT45DIB
 Internal information structure. More...

Defines

#define AT45DIB_FDIRTY   0x0001
 RAM buffer dirty flag.
#define SPI_RATE_AT45D0   33000000
#define SPI_MODE_AT45D0   SPI_MODE_3
#define MOUNT_OFFSET_AT45DIB0   0
#define MOUNT_TOP_RESERVE_AT45DIB0   1
#define SPI_RATE_AT45D1   33000000
#define SPI_MODE_AT45D1   SPI_MODE_3
#define MOUNT_OFFSET_AT45DIB1   0
#define MOUNT_TOP_RESERVE_AT45DIB1   1

Typedefs

typedef struct _AT45DIB AT45DIB
 Internal information structure.

Variables

NUTSERIALFLASH flashAt45dib0
 First AT45D DataFlash interface implementation structure.
NUTSERIALFLASH flashAt45dib1
 Second AT45D DataFlash interface implementation structure.
NUTSERIALFLASH flashAt45dib0
 First AT45D DataFlash interface implementation structure.
NUTSERIALFLASH flashAt45dib1
 Second AT45D DataFlash interface implementation structure.

Define Documentation

#define AT45DIB_FDIRTY   0x0001

RAM buffer dirty flag.

Definition at line 64 of file spi_at45dib.c.

#define SPI_RATE_AT45D0   33000000

Definition at line 977 of file spi_at45dib.c.

#define SPI_MODE_AT45D0   SPI_MODE_3

Definition at line 985 of file spi_at45dib.c.

#define MOUNT_OFFSET_AT45DIB0   0

Definition at line 1020 of file spi_at45dib.c.

#define MOUNT_TOP_RESERVE_AT45DIB0   1

Definition at line 1028 of file spi_at45dib.c.

#define SPI_RATE_AT45D1   33000000

Definition at line 1055 of file spi_at45dib.c.

#define SPI_MODE_AT45D1   SPI_MODE_3

Definition at line 1063 of file spi_at45dib.c.

#define MOUNT_OFFSET_AT45DIB1   0

Definition at line 1095 of file spi_at45dib.c.

#define MOUNT_TOP_RESERVE_AT45DIB1   1

Definition at line 1103 of file spi_at45dib.c.


Typedef Documentation

typedef struct _AT45DIB AT45DIB

Internal information structure.

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


Variable Documentation

First AT45D DataFlash interface implementation structure.

Definition at line 1035 of file spi_at45dib.c.

Second AT45D DataFlash interface implementation structure.

Definition at line 1110 of file spi_at45dib.c.

Initial value:
 {
    &spiNode0,                  
    NULL,                       
    0,                          
    0,                          
    MOUNT_OFFSET_AT45DIB0,      
    MOUNT_TOP_RESERVE_AT45DIB0, 
    SpiAt45dibInit,             
    SpiAt45dibExit,             
    SpiAt45dibCheck,            
    SpiAt45dibRead,             
    SpiAt45dibCompare,          
    SpiAt45dibUsed,             
    SpiAt45dibWrite,            
    SpiAt45dibCopy,             
    SpiAt45dibCommit,           
    SpiAt45dibErase             
}

First AT45D DataFlash interface implementation structure.

Definition at line 1035 of file spi_at45dib.c.

Initial value:
 {
    &spiNode1,                  
    NULL,                       
    0,                          
    0,                          
    MOUNT_OFFSET_AT45DIB1,      
    MOUNT_TOP_RESERVE_AT45DIB1, 
    SpiAt45dibInit,             
    SpiAt45dibExit,             
    SpiAt45dibCheck,            
    SpiAt45dibRead,             
    SpiAt45dibCompare,          
    SpiAt45dibUsed,             
    SpiAt45dibWrite,            
    SpiAt45dibCopy,             
    SpiAt45dibCommit,           
    SpiAt45dibErase             
}

Second AT45D DataFlash interface implementation structure.

Definition at line 1110 of file spi_at45dib.c.