nut/include/dev/at91_spi.h File Reference


Detailed Description

AT91 peripherals.

 *
 * $Log: at91_spi.h,v $
 * Revision 1.2  2006/10/08 16:48:09  haraldkipp
 * Documentation fixed
 *
 * Revision 1.1  2006/09/29 12:34:59  haraldkipp
 * Basic AT91 SPI support added.
 *
 *
 * 

#include <sys/types.h>
#include <cfg/arch.h>

Defines

#define SPI_GETDATABITS   0x0406
#define SPI_GETMODE   0x0404
#define SPI_GETSPEED   0x0402
#define SPI_SETDATABITS   0x0405
#define SPI_SETMODE   0x0403
#define SPI_SETSPEED   0x0401
#define SPIMF_CAPRISE   0x00000020
#define SPIMF_KEEPCS   0x00000040
#define SPIMF_LOOPBACK   0x00000008
#define SPIMF_MASTER   0x00000001
#define SPIMF_MFDETECT   0x00000004
#define SPIMF_PCSDEC   0x00000002
#define SPIMF_SCKIAHI   0x00000010

Functions

int At91Spi0Enable (void)
__BEGIN_DECLS int At91Spi0Init (void)
int At91Spi0InitChipSelects (u_int mask)
u_int At91SpiGetBits (u_int base, u_int cs)
u_int At91SpiGetCsDelay (u_int base)
u_long At91SpiGetModeFlags (u_int base, u_int cs)
u_int At91SpiGetSckDelay (u_int base, u_int cs)
u_int At91SpiGetTxDelay (u_int base, u_int cs)
int At91SpiInit (u_int base)
int At91SpiInitChipSelects (u_int base, u_int mask)
int At91SpiReset (u_int base)
int At91SpiSetBits (u_int base, u_int cs, u_int bits)
int At91SpiSetCsDelay (u_int base, u_int dly)
int At91SpiSetModeFlags (u_int base, u_int cs, u_long mode)
int At91SpiSetRate (u_int base, u_int cs, u_long rate)
int At91SpiSetSckDelay (u_int base, u_int cs, u_int dly)
int At91SpiSetTxDelay (u_int base, u_int cs, u_int dly)
int At91SpiTransfer2 (u_int base, u_int cs, CONST void *txbuf, void *rxbuf, int xlen, CONST void *txnbuf, void *rxnbuf, int xnlen)


Generated on Tue Jan 23 21:12:25 2007 for BTnut System Software by doxygen 1.4.7