xyControl
0.1
Quadrotor Flight Controller on AVR Basis
|
SPI Library for AVRs built-in SPI Hardware. More...
Files | |
file | spi.h |
SPI API Header. | |
file | spi.c |
SPI API Implementation. | |
Enumerations | |
enum | SPI_MODE { MODE_0 = 0, MODE_1 = 1, MODE_2 = 2, MODE_3 = 3 } |
SPI Mode option. More... | |
enum | SPI_SPEED { SPEED_2 = 4, SPEED_4 = 0, SPEED_8 = 5, SPEED_16 = 1, SPEED_32 = 6, SPEED_64 = 2, SPEED_128 = 3 } |
SPI Speed options. More... | |
Functions | |
void | spiInit (SPI_MODE mode, SPI_SPEED speed) |
Initialize the SPI Hardware Module. More... | |
uint8_t | spiSendByte (uint8_t d) |
Send and Receive one byte. More... | |
SPI Library for AVRs built-in SPI Hardware.
enum SPI_MODE |
enum SPI_SPEED |
Initialize the SPI Hardware Module.
mode | SPI Mode to use |
speed | SPI Speed to use |
Referenced by xyInit().