WPILib 2012
WPILibRoboticsLibraryforFRC
CInterfaces/CVictor.h
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 
00007 #ifndef C_VICTOR_H
00008 #define C_VICTOR_H
00009 
00010 #include <VxWorks.h>
00011 
00012 void SetVictorSpeed(UINT32 module, UINT32 channel, float speed);
00013 void SetVictorSpeed(UINT32 channel, float speed);
00014 void SetVictorRaw(UINT32 channel, UINT8 value);
00015 UINT8 GetVictorRaw(UINT32 channel);
00016 void SetVictorRaw(UINT32 module, UINT32 channel, UINT8 value);
00017 UINT8 GetVictorRaw(UINT32 module, UINT32 channel);
00018 void DeleteVictor(UINT32 module, UINT32 channel);
00019 void DeleteVictor(UINT32 channel);
00020 
00021 typedef void *VictorObject;
00022 
00023 VictorObject CreateVictor(UINT32 slot, UINT32 channel);
00024 VictorObject CreateVictor(UINT32 channel);
00025 void DeleteVictor(VictorObject o);
00026 void SetVictorSpeed(VictorObject o, float speed);
00027 void SetVictorRaw(VictorObject o, UINT8 value);
00028 UINT8 GetVictorRaw(VictorObject o);
00029 
00030 void LoadVictor();
00031 #endif
 All Classes Functions Variables