Main Page   Data Structures   File List   Data Fields   Globals  

/uartsw.h

Go to the documentation of this file.
00001 /*! \file uartsw.h \brief Software Interrupt-driven UART function library. */
00002 //*****************************************************************************
00003 //
00004 // File Name    : 'uartsw.c'
00005 // Title        : Software Interrupt-driven UART function library
00006 // Author       : Pascal Stang - Copyright (C) 2002-2003
00007 // Created      : 7/20/2002
00008 // Revised      : 6/03/2003
00009 // Version      : 0.1
00010 // Target MCU   : Atmel AVR Series
00011 // Editor Tabs  : 4
00012 //
00013 // Description :
00014 //
00015 // This code is distributed under the GNU Public License
00016 //      which can be found at http://www.gnu.org/licenses/gpl.txt
00017 //
00018 //*****************************************************************************
00019 
00020 #ifndef UARTSW_H
00021 #define UARTSW_H
00022 
00023 #include "global.h"
00024 #include "buffer.h"
00025 
00026 // constants/macros/typdefs
00027 #define UARTSW_RX_BUFFER_SIZE       0x20
00028 
00029 // functions
00030 
00031 //! enable and initialize the software uart
00032 void uartswInit(void);
00033 //! create and initialize the uart buffers
00034 void uartswInitBuffers(void);
00035 //! turns off software UART
00036 void uartswOff(void);
00037 //! returns the receive buffer structure 
00038 cBuffer* uartswGetRxBuffer(void);
00039 
00040 void uartswSetBaudRate(u32 baudrate);
00041 void uartswSendByte(u08 data);
00042 u08 uartswReceiveByte(u08* rxData);
00043 
00044 void uartswTxBitService(void);
00045 void uartswRxBitService(void);
00046 
00047 #endif

Generated on Fri Aug 1 10:42:42 2003 for Procyon AVRlib by doxygen1.2.18