4 #include "CtreCanNode.h"
8 PCM(UINT8 deviceNumber=0);
17 CTR_Code SetSolenoid(
unsigned char idx,
bool en);
23 CTR_Code SetClosedLoopControl(
bool en);
36 CTR_Code GetSolenoid(UINT8 idx,
bool &status);
43 CTR_Code GetAllSolenoids(UINT8 &status);
55 CTR_Code GetCompressor(
bool &status);
61 CTR_Code GetClosedLoopControl(
bool &status);
67 CTR_Code GetCompressorCurrent(
float &status);
73 CTR_Code GetSolenoidVoltage(
float &status);
79 CTR_Code GetHardwareFault(
bool &status);
85 CTR_Code GetCompressorCurrentTooHighFault(
bool &status);
91 CTR_Code GetSolenoidFault(
bool &status);
98 CTR_Code GetCompressorCurrentTooHighStickyFault(
bool &status);
103 CTR_Code GetCompressorShortedStickyFault(
bool &status);
108 CTR_Code GetCompressorShortedFault(
bool &status);
114 CTR_Code GetCompressorNotConnectedStickyFault(
bool &status);
120 CTR_Code GetCompressorNotConnectedFault(
bool &status);
127 CTR_Code GetSolenoidStickyFault(
bool &status);
133 CTR_Code GetBatteryVoltage(
float &status);
139 void SetDeviceNumber(UINT8 deviceNumber);
147 CTR_Code GetNumberOfFailedControlFrames(UINT16 &status);
157 CTR_Code GetSolenoidBlackList(UINT8 &status);
168 CTR_Code IsSolenoidBlacklisted(UINT8 idx,
bool &status);
174 CTR_Code isModuleEnabled(
bool &status);
180 CTR_Code FireOneShotSolenoid(UINT8 idx);
188 CTR_Code SetOneShotDurationMs(UINT8 idx,uint32_t durMs);
193 void * c_PCM_Init(
void);
194 CTR_Code c_SetSolenoid(
void * handle,
unsigned char idx,INT8 param);
195 CTR_Code c_SetClosedLoopControl(
void * handle,INT8 param);
196 CTR_Code c_ClearStickyFaults(
void * handle,INT8 param);
197 CTR_Code c_GetSolenoid(
void * handle,UINT8 idx,INT8 * status);
198 CTR_Code c_GetAllSolenoids(
void * handle,UINT8 * status);
199 CTR_Code c_GetPressure(
void * handle,INT8 * status);
200 CTR_Code c_GetCompressor(
void * handle,INT8 * status);
201 CTR_Code c_GetClosedLoopControl(
void * handle,INT8 * status);
202 CTR_Code c_GetCompressorCurrent(
void * handle,
float * status);
203 CTR_Code c_GetSolenoidVoltage(
void * handle,
float*status);
204 CTR_Code c_GetHardwareFault(
void * handle,INT8*status);
205 CTR_Code c_GetCompressorFault(
void * handle,INT8*status);
206 CTR_Code c_GetSolenoidFault(
void * handle,INT8*status);
207 CTR_Code c_GetCompressorStickyFault(
void * handle,INT8*status);
208 CTR_Code c_GetSolenoidStickyFault(
void * handle,INT8*status);
209 CTR_Code c_GetBatteryVoltage(
void * handle,
float*status);
210 void c_SetDeviceNumber_PCM(
void * handle,UINT8 deviceNumber);
211 void c_EnableSeekStatusFrames(
void * handle,INT8 enable);
212 void c_EnableSeekStatusFaultFrames(
void * handle,INT8 enable);
213 void c_EnableSeekDebugFrames(
void * handle,INT8 enable);
214 CTR_Code c_GetNumberOfFailedControlFrames(
void * handle,UINT16*status);
215 CTR_Code c_GetSolenoidBlackList(
void * handle,UINT8 *status);
216 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