Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

# ft245.h

Go to the documentation of this file.

    00001 /*! \file ft245.h \brief FTDI FT245 USB Inferface Driver Library. */
    00002 //*****************************************************************************
    00003 //
    00004 // File Name    : 'ft245.h'
    00005 // Title        : FTDI FT245 USB Inferface Driver Library
    00006 // Author       : Pascal Stang - Copyright (C) 2004
    00007 // Created      : 2004.02.10
    00008 // Revised      : 2004.02.19
    00009 // Version      : 0.1
    00010 // Target MCU   : Atmel AVR Series
    00011 // Editor Tabs  : 4
    00012 //
    00013 // NOTE: This code is currently below version 1.0, and therefore is considered
    00014 // to be lacking in some functionality or documentation, or may not be fully
    00015 // tested.  Nonetheless, you can expect most functions to work.
    00016 //
    00017 // This code is distributed under the GNU Public License
    00018 //      which can be found at http://www.gnu.org/licenses/gpl.txt
    00019 //
    00020 //*****************************************************************************
    00021
    00022 #ifndef FT245_H
    00023 #define FT245_H
    00024
    00025 #include "global.h"
    00026 #include "buffer.h"
    00027
    00028 //#include "ft245conf.h"
    00029
    00030 // constants/macros/typdefs
    00031 #define FT245_RX_BUFFER_SIZE    384
    00032
    00033 // functions
    00034 void ft245Init(void);
    00035 void ft245Reset(void);
    00036 u08 ft245ReadByte(void);
    00037 void ft245WriteByte(u08 data);
    00038 u08 ft245CheckRxFifo(void);
    00039 u08 ft245CheckTxFifo(void);
    00040 void ft245SendByte(u08 data);
    00041 cBuffer* ft245GetRxBuffer(void);
    00042 #endif