Serial_Stream.h File Reference

#include <avr/io.h>
#include <stdio.h>
#include "Serial.h"

Functions

static void SerialStream_Init (const uint32_t BaudRate, const bool DoubleSpeed)

Detailed Description

Serial stream driver for the USART subsystem on supported USB AVRs. This makes use of the functions in the regular USART driver, but allows the avr-libc standard stream functions (printf, puts, etc.) to work with the USART.

Function Documentation

static void SerialStream_Init ( const uint32_t  BaudRate,
const bool  DoubleSpeed 
) [inline, static]

Initializes the serial stream (and regular USART driver) so that both the stream and regular USART driver functions can be used. Must be called before any stream or regular USART functions.

Parameters:
BaudRate Baud rate to configure the USART to
DoubleSpeed Enables double speed mode when set, halving the sample time to double the baud rate


Generated on Mon Feb 9 20:18:59 2009 for LUFA Library by  doxygen 1.5.7.1