xyControl  0.1
Quadrotor Flight Controller on AVR Basis
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups
Enumerations | Functions
spi.h File Reference

SPI API Header. More...

Go to the source code of this file.

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...
 

Detailed Description

SPI API Header.

Definition in file spi.h.