brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 1 | /*----------------------------------------------------------------------------*/ |
| 2 | /* Copyright (c) FIRST 2008. All Rights Reserved. */ |
| 3 | /* Open Source Software - may be modified and shared by FRC teams. The code */ |
| 4 | /* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib. */ |
| 5 | /*----------------------------------------------------------------------------*/ |
| 6 | |
| 7 | #ifndef C_JAGUAR_H |
| 8 | #define C_JAGUAR_H |
| 9 | |
| 10 | void SetJaguarSpeed(UINT32 module, UINT32 channel, float speed); |
| 11 | void SetJaguarSpeed(UINT32 channel, float speed); |
| 12 | void SetJaguarRaw(UINT32 channel, UINT8 value); |
| 13 | UINT8 GetJaguarRaw(UINT32 channel); |
| 14 | void SetJaguarRaw(UINT32 module, UINT32 channel, UINT8 value); |
| 15 | UINT8 GetJaguarRaw(UINT32 module, UINT32 channel); |
| 16 | void DeleteJaguar(UINT32 module, UINT32 channel); |
| 17 | void DeleteJaguar(UINT32 channel); |
| 18 | |
| 19 | typedef void *JaguarObject; |
| 20 | |
| 21 | JaguarObject CreateJaguar(UINT32 module, UINT32 channel); |
| 22 | JaguarObject CreateJaguar(UINT32 channel); |
| 23 | void SetJaguarRaw(JaguarObject o, UINT8 value); |
| 24 | void SetJaguarSpeed(JaguarObject o, float speed); |
| 25 | UINT8 GetJaguarRaw(JaguarObject o); |
| 26 | void DeleteJaguar(JaguarObject o); |
| 27 | |
| 28 | #endif |
| 29 | |