spi.c File Reference
#include "TIMotorLIB.h"
#include "spi.h"
Go to the source code of this file.
Functions |
void | SpiFifoInit (void) |
void | ConfigureSPIA (void(*interruptRX)(void), void(*interruptTX)(void), SPINMC networkModeControl, SPILBK spiLoopBack, Uint32 speed, Uint16 SPIcharLength, Uint16 txFIFO, Uint16 rxFIFO) |
void | InitSpiaGpio (void) |
Function Documentation
void ConfigureSPIA |
( |
void(*)(void) |
interruptRX, |
|
|
void(*)(void) |
interruptTX, |
|
|
SPINMC |
networkModeControl, |
|
|
SPILBK |
spiLoopBack, |
|
|
Uint32 |
speed, |
|
|
Uint16 |
SPIcharLength, |
|
|
Uint16 |
txFIFO, |
|
|
Uint16 |
rxFIFO | |
|
) |
| | |
Intializes SPIA
- Parameters:
-
| interruptRX,: | pointer to ISR executed when new data is received |
| interruptTX,: | pointer to ISR executed when there is enough room in the txFIFO. |
| networkModeControl,: | device as master or slave (SPIMASTER/SPISLAVE) |
| spiLoopBack,: | enable/disable loopback mode (SPILBKENA/SPILBKDIS) |
| speed,: | baud rate configuration in Mhz |
| SPIcharLength,: | Character Length Control. Number of bits to be shifted in or out as a single character during one shift sequence. |
| txFIFO,: | transmit FIFO interrupt level bits. |
| rxFIFO,: | receive FIFO interrupt level bits. |
Definition at line 28 of file spi.c.
void InitSpiaGpio |
( |
void |
|
) |
|
Definition at line 91 of file spi.c.
void SpiFifoInit |
( |
void |
|
) |
|