* * $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. * * *
Defines | |
#define | SPI_SETSPEED 0x0401 |
#define | SPI_GETSPEED 0x0402 |
#define | SPI_SETMODE 0x0403 |
#define | SPI_GETMODE 0x0404 |
#define | SPIMF_MASTER 0x00000001 |
#define | SPIMF_PCSDEC 0x00000002 |
#define | SPIMF_MFDETECT 0x00000004 |
#define | SPIMF_LOOPBACK 0x00000008 |
#define | SPIMF_SCKIAHI 0x00000010 |
#define | SPIMF_CAPRISE 0x00000020 |
#define | SPIMF_KEEPCS 0x00000040 |
#define | SPI_SETDATABITS 0x0405 |
#define | SPI_GETDATABITS 0x0406 |
Functions | |
int | At91Spi0Init (void) |
Initialize the first serial peripheral interface on the AT91 MCU. | |
int | At91Spi0InitChipSelects (u_int mask) |
Initialize specified SPI0 chip selects on the AT91 MCU. | |
int | At91Spi0Enable (void) |
Initialize the second serial peripheral interface on the AT91 MCU. | |
int | At91SpiInit (u_int base) |
Initialize serial peripheral interface on the AT91 MCU. | |
int | At91SpiReset (u_int base) |
Reset serial peripheral interface on the AT91 MCU. | |
int | At91SpiInitChipSelects (u_int base, u_int mask) |
Initialize specified SPI chip selects on the AT91 MCU. | |
int | At91SpiSetRate (u_int base, u_int cs, u_long rate) |
Configure the SPI rate. | |
u_long | At91SpiGetModeFlags (u_int base, u_int cs) |
int | At91SpiSetModeFlags (u_int base, u_int cs, u_long mode) |
Configure the SPI operation mode. | |
u_int | At91SpiGetBits (u_int base, u_int cs) |
int | At91SpiSetBits (u_int base, u_int cs, u_int bits) |
u_int | At91SpiGetSckDelay (u_int base, u_int cs) |
int | At91SpiSetSckDelay (u_int base, u_int cs, u_int dly) |
u_int | At91SpiGetTxDelay (u_int base, u_int cs) |
int | At91SpiSetTxDelay (u_int base, u_int cs, u_int dly) |
u_int | At91SpiGetCsDelay (u_int base) |
int | At91SpiSetCsDelay (u_int base, 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) |
|
Initialize specified SPI0 chip selects on the AT91 MCU.
|
|
Initialize serial peripheral interface on the AT91 MCU.
|
|
Reset serial peripheral interface on the AT91 MCU.
|
|
Initialize specified SPI chip selects on the AT91 MCU.
|
|
Configure the SPI rate.
|
|
Configure the SPI operation mode.
|