Main Page | Modules | Data Structures | File List | Data Fields | Globals

ptapulse.h

Go to the documentation of this file.
00001 /*
00002  * $Id: ptapulse.h,v 1.1 2003/10/30 02:16:39 dasmith Exp $
00003  *
00004  * ptapulse.h - Sets up a TPU channel to measure the
00005  *                              pulse width of an input signal.
00006  *
00007  * Copyright (C) 2003 David A. Smith
00008  *
00009  * This library is distributed under the terms of the GNU Lesser General
00010  * Public License (LGPL).  You should have received a copy of the
00011  * license along with this library (LGPL.txt); if not, write to
00012  * the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
00013  * Boston, MA  02111-1307  USA
00014  */
00015 
00032 #ifndef __TPU_PTAPULSE_H
00033 #define __TPU_PTAPULSE_H
00034 
00035 #include <68332/types.h>
00036 #include <68332/tpu.h>
00037 
00038 #ifdef __cplusplus
00039 extern "C" {
00040 #endif
00041 
00054 void ptapulse_init (
00055         TPUChannel* handle,
00056         bool pulseLevel
00057 );
00058 
00073 uint32 ptapulse_result (
00074         TPUChannel* handle
00075 );
00076 
00077 #ifdef __cplusplus
00078 }
00079 #endif
00080 
00081 #endif  // #ifndef __TPU_PTAPULSE_H

Generated on Wed Sep 6 03:02:21 2006 for MotoRobots by doxygen 1.3.6