WPILib 2012
WPILibRoboticsLibraryforFRC
CInterfaces/CCounter.h
00001 #ifndef _C_COUNTER_H
00002 #define _C_COUNTER_H
00003 
00004 void StartCounter(UINT32 channel);
00005 void StartCounter(UINT8 moduleNumber, UINT32 channel);
00006 INT32 GetCounter(UINT32 channel);
00007 INT32 GetCounter(UINT8 moduleNumber, UINT32 channel);
00008 void ResetCounter(UINT32 channel);
00009 void ResetCounter(UINT8 moduleNumber, UINT32 channel);
00010 void StopCounter(UINT32 channel);
00011 void StopCounter(UINT8 moduleNumber, UINT32 channel);
00012 double GetCounterPeriod(UINT32 channel);
00013 double GetCounterPeriod(UINT8 moduleNumber, UINT32 channel);
00014 void DeleteCounter(UINT32 channel);
00015 void DeleteCounter(UINT8 moduleNumber, UINT32 channel);
00016 
00017 typedef void *CounterObject;
00018 
00019 CounterObject CreateCounter(UINT32 channel);
00020 CounterObject CreateCounter(UINT8 moduleNumber, UINT32 channel);
00021 void StartCounter(CounterObject o);
00022 INT32 GetCounter(CounterObject o);
00023 void ResetCounter(CounterObject o);
00024 void StopCounter(CounterObject o);
00025 double GetCounterPeriod(CounterObject o);
00026 void DeleteCounter(CounterObject o);
00027 
00028 
00029 #endif
 All Classes Functions Variables