pdc.h

Go to the documentation of this file.
00001 /*This file has been prepared for Doxygen automatic documentation generation.*/
00022 /* Copyright (c) 2006, Atmel Corporation All rights reserved.
00023  *
00024  * Redistribution and use in source and binary forms, with or without
00025  * modification, are permitted provided that the following conditions are met:
00026  *
00027  * 1. Redistributions of source code must retain the above copyright notice,
00028  * this list of conditions and the following disclaimer.
00029  *
00030  * 2. Redistributions in binary form must reproduce the above copyright notice,
00031  * this list of conditions and the following disclaimer in the documentation
00032  * and/or other materials provided with the distribution.
00033  *
00034  * 3. The name of ATMEL may not be used to endorse or promote products derived
00035  * from this software without specific prior written permission.
00036  *
00037  * THIS SOFTWARE IS PROVIDED BY ATMEL ``AS IS'' AND ANY EXPRESS OR IMPLIED
00038  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
00039  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY AND
00040  * SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT,
00041  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
00042  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
00043  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
00044  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00045  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
00046  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00047  */
00048 
00049 #ifndef _PDC_H
00050 #define _PDC_H
00051 
00052 #ifdef __GNUC__
00053 #include <avr32/io.h>
00054 #elif __ICCAVR32__
00055 #include <avr32/ioap7000.h>
00056 #include <intrinsics.h>
00057 #else
00058 #error No known compiler used
00059 #endif
00060 
00061 void pdc_disable(void * dev);
00062 
00063 void pdc_enable(void * dev);
00064 
00065 void pdc_disableRx(void * dev);
00066 
00067 void pdc_disableTx(void * dev);
00068 
00069 void pdc_enableRx(void * dev);
00070 
00071 void pdc_enableTx(void * dev);
00072 
00073 void pdc_setRxBuf(void * dev,
00074         void * rp,
00075         unsigned short rc,
00076         void * rnp,
00077         unsigned short rnc);
00078 
00079 void pdc_setRxNextBuf(void * dev,
00080         void * rnp,
00081         unsigned short rnc);
00082 
00083 void pdc_setTxBuf(void * dev,
00084         void * tp,
00085         unsigned short tc,
00086         void * tnp,
00087         unsigned short tnc);
00088 
00089 void pdc_setTxNextBuf(void * dev,
00090         void * tnp,
00091         unsigned short tnc);
00092 
00093 int pdc_getRcr(void * dev);
00094 
00095 int pdc_rxBytesLeft(void * dev);
00096 
00097 int pdc_getTcr(void * dev);
00098 
00099 int pdc_txBytesLeft(void * dev);
00100 
00101 void pdc_flushCache(void * buffer, unsigned short size);
00102 
00103 void * pdc_translatePtr(void * pointerAddr);
00104 
00105 #endif /* _PDC_H */
00106 

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