usart_options_t Struct Reference

#include <usart.h>


Detailed Description

Input parameters when initializing rs232 mode, and some similar modes.

Definition at line 72 of file usart.h.

Data Fields

unsigned long baudrate
unsigned char channelmode
unsigned char charlength
unsigned char paritytype
unsigned short stopbits


Field Documentation

unsigned long usart_options_t::baudrate

Set baudrate of the usart

Definition at line 77 of file usart.h.

Referenced by main(), and usart_init_rs232().

unsigned char usart_options_t::channelmode

Run the channel in testmode: 0=normal tx/rx, 1=auto echo(tx->rx), 2=local loopback(tx->rx), 3=remote loopback(rx->tx)

Definition at line 104 of file usart.h.

Referenced by main(), and usart_init_rs232().

unsigned char usart_options_t::charlength

Number of bits to transmit as a character (5-9)

Definition at line 82 of file usart.h.

Referenced by main(), and usart_init_rs232().

unsigned char usart_options_t::paritytype

How to calculate the parity bit: 0=even parity, 1=odd parity, 2=space, 3=mark, 4|5=no parity bit, 6|7=multidrop mode

Definition at line 89 of file usart.h.

Referenced by main(), and usart_init_rs232().

unsigned short usart_options_t::stopbits

Number of stop bits between to characters: 0=1bit, 1=1.5bit(async mode only), 2=2bits, the numbers 3 to 257 will result in a time guard period of that length between characters.

Definition at line 97 of file usart.h.

Referenced by main(), and usart_init_rs232().


Generated on Thu May 10 14:17:57 2007 for AVR321000 Communication with the AVR32 USART by  doxygen 1.5.1