Main Page   Modules   Data Structures   File List   Data Fields   Globals  

uartsw.c File Reference

Software Interrupt-driven UART function library. More...

#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/signal.h>
#include "global.h"
#include "timer.h"
#include "uartsw.h"

Go to the source code of this file.

Functions

void uartswInit (void)
 enable and initialize the software uart

void uartswInitBuffers (void)
 create and initialize the uart buffers

void uartswOff (void)
 turns off software UART

void uartswSetBaudRate (u32 baudrate)
cBuffer * uartswGetRxBuffer (void)
 returns the receive buffer structure

void uartswSendByte (u08 data)
u08 uartswReceiveByte (u08 *rxData)
 gets a byte (if available) from the uart receive buffer

void uartswTxBitService (void)
void uartswRxBitService (void)

Variables

volatile u08 UartswTxBusy
volatile u16 UartswBaudRateDiv
volatile u08 UartswTxData
volatile u08 UartswTxBitNum
cBuffer uartswRxBuffer
 uartsw receive buffer

volatile u08 UartswRxStartBit
volatile u08 UartswRxData
volatile u08 UartswRxBitNum


Detailed Description

Software Interrupt-driven UART function library.

Definition in file uartsw.c.


Generated on Sun Feb 22 19:12:32 2004 for Procyon AVRlib by doxygen1.3-rc2