| LUFA Library 140302 |

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
SerialSPI_AVR8.h File Reference

Master SPI Mode Serial USART Peripheral Driver (XMEGA) More...

`#include "../../../Common/Common.h"`
`#include <stdio.h>`

## Macros
SPI SCK Polarity Configuration Masks
#define | USART_SPI_SCK_LEAD_RISING (0 << UCPOL)
#define | USART_SPI_SCK_LEAD_FALLING (1 << UCPOL)
SPI Sample Edge Configuration Masks
#define | USART_SPI_SAMPLE_LEADING (0 << UPCHA)
#define | USART_SPI_SAMPLE_TRAILING (1 << UPCHA)
SPI Data Ordering Configuration Masks
#define | USART_SPI_ORDER_MSB_FIRST (0 << UDORD)
#define | USART_SPI_ORDER_LSB_FIRST (1 << UDORD)

## Functions
static void | SerialSPI_Disable (void)
static void | SerialSPI_Init (const uint8_t SPIOptions, const uint32_t BaudRate)
static uint8_t | SerialSPI_ReceiveByte (void)
static void | SerialSPI_SendByte (const uint8_t DataByte)
static uint8_t | SerialSPI_TransferByte (const uint8_t DataByte)

## Detailed Description

On-chip Master SPI mode USART driver for the XMEGA AVR microcontrollers.

Note
  This file should not be included directly. It is automatically included as needed by the SPI Master Mode USART driver dispatch header located in LUFA/Drivers/Peripheral/Serial.h.