usart_options_t Struct Reference

#include <usart.h>


Detailed Description

Input parameters when initializing rs232 mode.

Definition at line 130 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 133 of file usart.h.

Referenced by main(), and usart_linit().

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 163 of file usart.h.

Referenced by main(), and usart_linit().

unsigned char usart_options_t::charlength
 

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

Definition at line 136 of file usart.h.

Referenced by main(), and usart_linit().

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 146 of file usart.h.

Referenced by main(), and usart_linit().

unsigned short usart_options_t::stopbits
 

Number of stop bits between to characters:

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

Definition at line 155 of file usart.h.

Referenced by main(), and usart_linit().


Generated on Wed May 10 15:03:15 2006 for AVR32108 - Peripheral Direct Memory Access Driver by  doxygen 1.4.6-NO