Go to the source code of this file.
Data Structures | |
struct | _AT91SPIREG |
Typedefs | |
typedef struct _AT91SPIREG | AT91SPIREG |
Functions | |
int | At91Spi0ChipSelect (uint_fast8_t cs, uint_fast8_t hi) |
Set the specified chip select to a given level. | |
void | At91SpiBus0Interrupt (void *arg) |
int | At91Spi1ChipSelect (uint_fast8_t cs, uint_fast8_t hi) |
void | At91SpiBus1Interrupt (void *arg) |
int | At91SpiSetup (NUTSPINODE *node) |
Update SPI shadow registers. | |
int | At91SpiBusNodeInit (NUTSPINODE *node) |
Initialize an SPI bus node. | |
int | At91SpiBusTransfer (NUTSPINODE *node, CONST void *txbuf, void *rxbuf, int xlen) |
int | At91SpiBusDblBufTransfer (NUTSPINODE *node, CONST void *txbuf, void *rxbuf, int xlen) |
int | At91SpiBusPollTransfer (NUTSPINODE *node, CONST void *txbuf, void *rxbuf, int xlen) |
int | At91SpiBusWait (NUTSPINODE *node, uint32_t tmo) |
Wait until all SPI bus transfers are done. | |
Variables | |
NUTSPIBUS | spiBus0At91 |
AT91 SPI bus driver implementation structure. |
* $Id: spibus_at91.h,v 1.1 2009/01/09 17:54:38 haraldkipp Exp $ *
Definition in file spibus_at91.h.
typedef struct _AT91SPIREG AT91SPIREG |
Definition at line 48 of file spibus_at91.h.
int At91Spi0ChipSelect | ( | uint_fast8_t | cs, | |
uint_fast8_t | hi | |||
) |
Set the specified chip select to a given level.
Definition at line 121 of file spibus0at91.c.
Referenced by At91SpiBus0Deselect(), At91SpiBus0Select(), and At91SpiBusNodeInit().
void At91SpiBus0Interrupt | ( | void * | arg | ) |
int At91Spi1ChipSelect | ( | uint_fast8_t | cs, | |
uint_fast8_t | hi | |||
) |
Referenced by At91SpiBusNodeInit().
void At91SpiBus1Interrupt | ( | void * | arg | ) |
Referenced by At91SpiBusNodeInit().
int At91SpiSetup | ( | NUTSPINODE * | node | ) |
Update SPI shadow registers.
node | Specifies the SPI bus node. |
Definition at line 72 of file spibus_at91.c.
Referenced by At91SpiBus0Select(), and At91SpiBusNodeInit().
int At91SpiBusNodeInit | ( | NUTSPINODE * | node | ) |
Initialize an SPI bus node.
This routine is called for each SPI node, which is registered via NutRegisterSpiDevice().
node | Specifies the SPI bus node. |
Definition at line 137 of file spibus_at91.c.
int At91SpiBusTransfer | ( | NUTSPINODE * | node, | |
CONST void * | txbuf, | |||
void * | rxbuf, | |||
int | xlen | |||
) |
int At91SpiBusDblBufTransfer | ( | NUTSPINODE * | node, | |
CONST void * | txbuf, | |||
void * | rxbuf, | |||
int | xlen | |||
) |
int At91SpiBusPollTransfer | ( | NUTSPINODE * | node, | |
CONST void * | txbuf, | |||
void * | rxbuf, | |||
int | xlen | |||
) |
int At91SpiBusWait | ( | NUTSPINODE * | node, | |
uint32_t | tmo | |||
) |
Wait until all SPI bus transfers are done.
node | Specifies the SPI bus node. | |
tmo | Timeout in milliseconds. To disable timeout, set this parameter to NUT_WAIT_INFINITE. |
Definition at line 343 of file spibus_at91.c.
Referenced by At91SpiBus0Deselect().