LUFA Library  120219
Serial_AVR8.h File Reference

Serial USART Peripheral Driver (AVR8) More...

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


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


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

Detailed Description

On-chip serial USART driver for the 8-bit AVR microcontrollers.

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.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines