Nut/OS  4.10.3
API Reference
spi_node_at45d.c File Reference

Low level routines for Atmel AT45D SPI Flash. More...

#include <cfg/memory.h>
#include <dev/blockdev.h>
#include <sys/nutdebug.h>
#include <sys/timer.h>
#include <stdlib.h>
#include <string.h>
#include <dev/spi_node_at45d.h>
Include dependency graph for spi_node_at45d.c:

Go to the source code of this file.

Data Structures

struct  _AT45D_DCB

Defines

#define SPI_RATE_AT45D0   33000000
#define SPI_MODE_AT45D0   SPI_MODE_3
#define SPI_RATE_AT45D1   33000000
#define SPI_MODE_AT45D1   SPI_MODE_3
#define SPI_RATE_AT45D2   33000000
#define SPI_MODE_AT45D2   SPI_MODE_3
#define SPI_RATE_AT45D3   33000000
#define SPI_MODE_AT45D3   SPI_MODE_3

Typedefs

typedef struct _AT45D_DCB AT45D_DCB

Functions

int At45dNodeLock (NUTSPINODE *node)
void At45dNodeUnlock (NUTSPINODE *node)
int At45dNodeTransfer (NUTSPINODE *node, uint8_t op, uint32_t parm, uint_fast8_t oplen, CONST void *txbuf, void *rxbuf, int xlen)
 Execute DataFlash command with data transfer.
int At45dNodeCommand (NUTSPINODE *node, uint8_t op, uint32_t parm, uint_fast8_t oplen)
 Execute DataFlash command without data.
uint8_t At45dNodeStatus (NUTSPINODE *node)
 Query the status of the serial flash.
int At45dNodeWaitReady (NUTSPINODE *node, uint32_t tmo, int poll)
 Wait until DataFlash memory cycle finished.
AT45D_INFOAt45dNodeProbe (NUTSPINODE *node)
 Determine the DataFlash type.

Variables

NUTSPINODE nodeAt45d0
 First AT45D DataFlash SPI node implementation structure.
NUTSPINODE nodeAt45d1
 Second AT45D DataFlash SPI node implementation structure.
NUTSPINODE nodeAt45d2
 Third AT45D DataFlash SPI node implementation structure.
NUTSPINODE nodeAt45d3
 Forth AT45D DataFlash SPI node implementation structure.

Detailed Description

Low level routines for Atmel AT45D SPI Flash.

 * $Id$
 * 

Definition in file spi_node_at45d.c.