WPILib 2012
WPILibRoboticsLibraryforFRC
|
00001 /*----------------------------------------------------------------------------*/ 00002 /* Copyright (c) FIRST 2008. All Rights Reserved. */ 00003 /* Open Source Software - may be modified and shared by FRC teams. The code */ 00004 /* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib. */ 00005 /*----------------------------------------------------------------------------*/ 00006 #ifndef C_GEARTOOTH_H 00007 #define C_GEARTOOTH_H 00008 00009 #include "GearTooth.h" 00010 00011 // TODO: Need to add support for digital sensors 00012 00013 void InitGearTooth(UINT32 channel, bool directionSensitive); 00014 void InitGearTooth(UINT8 moduleNumber, UINT32 channel, bool directionSensitive); 00015 void StartGearTooth(UINT32 channel); 00016 void StartGearTooth(UINT8 moduleNumber, UINT32 channel); 00017 void StopGearTooth(UINT32 channel); 00018 void StopGearTooth(UINT8 moduleNumber, UINT32 channel); 00019 INT32 GetGearTooth(UINT32 channel); 00020 INT32 GetGearTooth(UINT8 moduleNumber, UINT32 channel); 00021 void ResetGearTooth(UINT32 channel); 00022 void ResetGearTooth(UINT8 moduleNumber, UINT32 channel); 00023 void DeleteGearTooth(UINT32 channel); 00024 void DeleteGearTooth(UINT8 moduleNumber, UINT32 channel); 00025 00026 typedef void *GearToothObject; 00027 00028 GearToothObject CreateGearTooth(UINT32 channel, bool directionSensitive = true); 00029 GearToothObject CreateGearTooth(UINT8 moduleNumber, UINT32 channel, bool directionSensitive = true); 00030 void StartGearTooth(GearToothObject o); 00031 void StopGearTooth(GearToothObject o); 00032 INT32 GetGearTooth(GearToothObject o); 00033 void ResetGearTooth(GearToothObject o); 00034 void DeleteGearTooth(GearToothObject o); 00035 00036 #endif