| LUFA Library 140302 |

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

Serial USART Peripheral Driver (XMEGA) More...

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

## Macros
#define | SERIAL_2X_UBBRVAL(Baud) ((((F_CPU / 8) + (Baud / 2)) / (Baud)) - 1)
#define | SERIAL_UBBRVAL(Baud) ((((F_CPU / 16) + (Baud / 2)) / (Baud)) - 1)

## Functions
void | Serial_CreateBlockingStream (FILE *Stream)
void | Serial_CreateStream (FILE *Stream)
static void | Serial_Disable (USART_t *const USART) ATTR_ALWAYS_INLINE ATTR_NON_NULL_PTR_ARG(1)
static void | Serial_Init (USART_t *const USART, const uint32_t BaudRate, const bool DoubleSpeed) ATTR_NON_NULL_PTR_ARG(1)
static bool | Serial_IsCharReceived (USART_t *const USART) ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT ATTR_NON_NULL_PTR_ARG(1)
static int16_t | Serial_ReceiveByte (USART_t *const USART) ATTR_ALWAYS_INLINE ATTR_NON_NULL_PTR_ARG(1)
static void | Serial_SendByte (USART_t *const USART, const char DataByte) ATTR_ALWAYS_INLINE ATTR_NON_NULL_PTR_ARG(1)
void | Serial_SendData (USART_t *const USART, const void *Buffer, uint16_t Length) ATTR_NON_NULL_PTR_ARG(1)
void | Serial_SendString (USART_t *const USART, const char *StringPtr) ATTR_NON_NULL_PTR_ARG(1)
void | Serial_SendString_P (USART_t *const USART, const char *FlashStringPtr) ATTR_NON_NULL_PTR_ARG(1)

## Detailed Description

On-chip serial USART driver for the XMEGA AVR microcontrollers.

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