WPILibC++ 2025.2.1
|
Go to the source code of this file.
Functions | |
HAL_CTREPCMHandle | HAL_InitializeCTREPCM (int32_t module, const char *allocationLocation, int32_t *status) |
Initializes a PCM. | |
void | HAL_FreeCTREPCM (HAL_CTREPCMHandle handle) |
Frees a PCM handle. | |
HAL_Bool | HAL_CheckCTREPCMSolenoidChannel (int32_t channel) |
Checks if a solenoid channel number is valid. | |
HAL_Bool | HAL_GetCTREPCMCompressor (HAL_CTREPCMHandle handle, int32_t *status) |
Get whether compressor is turned on. | |
void | HAL_SetCTREPCMClosedLoopControl (HAL_CTREPCMHandle handle, HAL_Bool enabled, int32_t *status) |
Enables the compressor closed loop control using the digital pressure switch. | |
HAL_Bool | HAL_GetCTREPCMClosedLoopControl (HAL_CTREPCMHandle handle, int32_t *status) |
Get whether the PCM closed loop control is enabled. | |
HAL_Bool | HAL_GetCTREPCMPressureSwitch (HAL_CTREPCMHandle handle, int32_t *status) |
Returns the state of the pressure switch. | |
double | HAL_GetCTREPCMCompressorCurrent (HAL_CTREPCMHandle handle, int32_t *status) |
Returns the current drawn by the compressor. | |
HAL_Bool | HAL_GetCTREPCMCompressorCurrentTooHighFault (HAL_CTREPCMHandle handle, int32_t *status) |
Return whether the compressor current is currently too high. | |
HAL_Bool | HAL_GetCTREPCMCompressorCurrentTooHighStickyFault (HAL_CTREPCMHandle handle, int32_t *status) |
Returns whether the compressor current has been too high since sticky faults were last cleared. | |
HAL_Bool | HAL_GetCTREPCMCompressorShortedStickyFault (HAL_CTREPCMHandle handle, int32_t *status) |
Returns whether the compressor has been shorted since sticky faults were last cleared. | |
HAL_Bool | HAL_GetCTREPCMCompressorShortedFault (HAL_CTREPCMHandle handle, int32_t *status) |
Returns whether the compressor is currently shorted. | |
HAL_Bool | HAL_GetCTREPCMCompressorNotConnectedStickyFault (HAL_CTREPCMHandle handle, int32_t *status) |
Returns whether the compressor has been disconnected since sticky faults were last cleared. | |
HAL_Bool | HAL_GetCTREPCMCompressorNotConnectedFault (HAL_CTREPCMHandle handle, int32_t *status) |
Returns whether the compressor is currently disconnected. | |
int32_t | HAL_GetCTREPCMSolenoids (HAL_CTREPCMHandle handle, int32_t *status) |
Gets a bitmask of solenoid values. | |
void | HAL_SetCTREPCMSolenoids (HAL_CTREPCMHandle handle, int32_t mask, int32_t values, int32_t *status) |
Sets solenoids on a pneumatics module. | |
int32_t | HAL_GetCTREPCMSolenoidDisabledList (HAL_CTREPCMHandle handle, int32_t *status) |
Get a bitmask of disabled solenoids. | |
HAL_Bool | HAL_GetCTREPCMSolenoidVoltageStickyFault (HAL_CTREPCMHandle handle, int32_t *status) |
Returns whether the solenoid has reported a voltage fault since sticky faults were last cleared. | |
HAL_Bool | HAL_GetCTREPCMSolenoidVoltageFault (HAL_CTREPCMHandle handle, int32_t *status) |
Returns whether the solenoid is currently reporting a voltage fault. | |
void | HAL_ClearAllCTREPCMStickyFaults (HAL_CTREPCMHandle handle, int32_t *status) |
Clears all sticky faults on this device. | |
void | HAL_FireCTREPCMOneShot (HAL_CTREPCMHandle handle, int32_t index, int32_t *status) |
Fire a single solenoid shot. | |
void | HAL_SetCTREPCMOneShotDuration (HAL_CTREPCMHandle handle, int32_t index, int32_t durMs, int32_t *status) |
Set the duration for a single solenoid shot. | |