4 #include "CtreCanNode.h"
8 PCM(UINT8 deviceNumber=0);
17 CTR_Code SetSolenoid(
unsigned char idx,
bool en);
24 CTR_Code SetAllSolenoids(UINT8 state);
30 CTR_Code SetClosedLoopControl(
bool en);
43 CTR_Code GetSolenoid(UINT8 idx,
bool &status);
50 CTR_Code GetAllSolenoids(UINT8 &status);
62 CTR_Code GetCompressor(
bool &status);
68 CTR_Code GetClosedLoopControl(
bool &status);
74 CTR_Code GetCompressorCurrent(
float &status);
80 CTR_Code GetSolenoidVoltage(
float &status);
86 CTR_Code GetHardwareFault(
bool &status);
92 CTR_Code GetCompressorCurrentTooHighFault(
bool &status);
98 CTR_Code GetSolenoidFault(
bool &status);
105 CTR_Code GetCompressorCurrentTooHighStickyFault(
bool &status);
110 CTR_Code GetCompressorShortedStickyFault(
bool &status);
115 CTR_Code GetCompressorShortedFault(
bool &status);
121 CTR_Code GetCompressorNotConnectedStickyFault(
bool &status);
127 CTR_Code GetCompressorNotConnectedFault(
bool &status);
134 CTR_Code GetSolenoidStickyFault(
bool &status);
140 CTR_Code GetBatteryVoltage(
float &status);
146 void SetDeviceNumber(UINT8 deviceNumber);
154 CTR_Code GetNumberOfFailedControlFrames(UINT16 &status);
164 CTR_Code GetSolenoidBlackList(UINT8 &status);
175 CTR_Code IsSolenoidBlacklisted(UINT8 idx,
bool &status);
181 CTR_Code isModuleEnabled(
bool &status);
187 CTR_Code FireOneShotSolenoid(UINT8 idx);
195 CTR_Code SetOneShotDurationMs(UINT8 idx,uint32_t durMs);
200 void * c_PCM_Init(
void);
201 CTR_Code c_SetSolenoid(
void * handle,
unsigned char idx,INT8 param);
202 CTR_Code c_SetAllSolenoids(
void * handle,UINT8 state);
203 CTR_Code c_SetClosedLoopControl(
void * handle,INT8 param);
204 CTR_Code c_ClearStickyFaults(
void * handle,INT8 param);
205 CTR_Code c_GetSolenoid(
void * handle,UINT8 idx,INT8 * status);
206 CTR_Code c_GetAllSolenoids(
void * handle,UINT8 * status);
207 CTR_Code c_GetPressure(
void * handle,INT8 * status);
208 CTR_Code c_GetCompressor(
void * handle,INT8 * status);
209 CTR_Code c_GetClosedLoopControl(
void * handle,INT8 * status);
210 CTR_Code c_GetCompressorCurrent(
void * handle,
float * status);
211 CTR_Code c_GetSolenoidVoltage(
void * handle,
float*status);
212 CTR_Code c_GetHardwareFault(
void * handle,INT8*status);
213 CTR_Code c_GetCompressorFault(
void * handle,INT8*status);
214 CTR_Code c_GetSolenoidFault(
void * handle,INT8*status);
215 CTR_Code c_GetCompressorStickyFault(
void * handle,INT8*status);
216 CTR_Code c_GetSolenoidStickyFault(
void * handle,INT8*status);
217 CTR_Code c_GetBatteryVoltage(
void * handle,
float*status);
218 void c_SetDeviceNumber_PCM(
void * handle,UINT8 deviceNumber);
219 void c_EnableSeekStatusFrames(
void * handle,INT8 enable);
220 void c_EnableSeekStatusFaultFrames(
void * handle,INT8 enable);
221 void c_EnableSeekDebugFrames(
void * handle,INT8 enable);
222 CTR_Code c_GetNumberOfFailedControlFrames(
void * handle,UINT16*status);
223 CTR_Code c_GetSolenoidBlackList(
void * handle,UINT8 *status);
224 CTR_Code c_IsSolenoidBlacklisted(
void * handle,UINT8 idx,INT8*status);
Common header for all CTRE HAL modules.
Definition: CtreCanNode.h:7
CTR_Code
Definition: ctre.h:44