Nut/OS  5.0.5
API Reference
at25df.h File Reference
#include <sys/types.h>
#include <stdint.h>
#include <dev/blockdev.h>
#include <dev/spibus.h>
Include dependency graph for at25df.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _AT25D_INFO
 AT25D DataFlash parameter structure. More...

Typedefs

typedef struct _AT25D_INFO AT25D_INFO
 AT25D DataFlash parameter structure type.

Functions

int At25dfInit (NUTDEVICE *dev)
 Initialize dataflash at specified interface and chip select.

Variables

NUTSPINODE at25df
NUTDEVICE devDataFlash0

Typedef Documentation

typedef struct _AT25D_INFO AT25D_INFO

AT25D DataFlash parameter structure type.


Function Documentation

int At25dfInit ( NUTDEVICE dev)

Initialize dataflash at specified interface and chip select.

Parameters:
spibasInterface base address. For ARM MCUs this may be the I/O base address of the hardware SPI.
spipcsDevice chip select.
Returns:
Device descriptor or -1 in case of an error.

References at25d_known_types, _AT25D_INFO::at25d_pages, _AT25D_INFO::at25d_psize, _NUTBLOCKIO::blkio_blk_cnt, _NUTBLOCKIO::blkio_blk_siz, _NUTBLOCKIO::blkio_info, _NUTDEVICE::dev_dcb, _NUTDEVICE::dev_icb, NULL, and NUTASSERT.


Variable Documentation