104 const char* allocationLocation,
186 double minAnalogVoltage,
187 double maxAnalogVoltage,
218 double minAnalogVoltage,
219 double maxAnalogVoltage,
@ HAL_ENUM
Definition: Value.h:14
void HAL_GetREVPHFaults(HAL_REVPHHandle handle, HAL_REVPHFaults *faults, int32_t *status)
Returns the faults currently active on the PH.
HAL_REVPHCompressorConfigType
The compressor configuration type.
Definition: REVPH.h:20
HAL_REVPHCompressorConfigType HAL_GetREVPHCompressorConfig(HAL_REVPHHandle handle, int32_t *status)
Get compressor configuration from the PH.
double HAL_GetREVPHSolenoidVoltage(HAL_REVPHHandle handle, int32_t *status)
Returns the current voltage of the solenoid power supply.
double HAL_GetREVPHSolenoidCurrent(HAL_REVPHHandle handle, int32_t *status)
Returns the total current drawn by all solenoids.
void HAL_GetREVPHStickyFaults(HAL_REVPHHandle handle, HAL_REVPHStickyFaults *stickyFaults, int32_t *status)
Returns the sticky faults currently active on this device.
double HAL_GetREVPH5VVoltage(HAL_REVPHHandle handle, int32_t *status)
Returns the current voltage of the regulated 5v supply.
void HAL_FreeREVPH(HAL_REVPHHandle handle)
Frees a PH handle.
void HAL_SetREVPHClosedLoopControlDisabled(HAL_REVPHHandle handle, int32_t *status)
Disable Compressor.
HAL_REVPHHandle HAL_InitializeREVPH(int32_t module, const char *allocationLocation, int32_t *status)
Initializes a PH.
void HAL_GetREVPHVersion(HAL_REVPHHandle handle, HAL_REVPHVersion *version, int32_t *status)
Returns the hardware and firmware versions of the PH.
int32_t HAL_GetREVPHSolenoids(HAL_REVPHHandle handle, int32_t *status)
Gets a bitmask of solenoid values.
void HAL_ClearREVPHStickyFaults(HAL_REVPHHandle handle, int32_t *status)
Clears the sticky faults.
void HAL_SetREVPHClosedLoopControlDigital(HAL_REVPHHandle handle, int32_t *status)
Enables the compressor in digital mode using the digital pressure switch.
void HAL_SetREVPHClosedLoopControlAnalog(HAL_REVPHHandle handle, double minAnalogVoltage, double maxAnalogVoltage, int32_t *status)
Enables the compressor in analog mode.
double HAL_GetREVPHVoltage(HAL_REVPHHandle handle, int32_t *status)
Returns the current input voltage for the PH.
HAL_Bool HAL_GetREVPHPressureSwitch(HAL_REVPHHandle handle, int32_t *status)
Returns the state of the digital pressure switch.
void HAL_SetREVPHClosedLoopControlHybrid(HAL_REVPHHandle handle, double minAnalogVoltage, double maxAnalogVoltage, int32_t *status)
Enables the compressor in hybrid mode.
double HAL_GetREVPHCompressorCurrent(HAL_REVPHHandle handle, int32_t *status)
Returns the current drawn by the compressor.
double HAL_GetREVPHAnalogVoltage(HAL_REVPHHandle handle, int32_t channel, int32_t *status)
Returns the raw voltage of the specified analog input channel.
HAL_Bool HAL_CheckREVPHSolenoidChannel(int32_t channel)
Checks if a solenoid channel number is valid.
HAL_Bool HAL_CheckREVPHModuleNumber(int32_t module)
Checks if a PH module (CAN ID) is valid.
void HAL_FireREVPHOneShot(HAL_REVPHHandle handle, int32_t index, int32_t durMs, int32_t *status)
Fire a single solenoid shot for the specified duration.
void HAL_SetREVPHSolenoids(HAL_REVPHHandle handle, int32_t mask, int32_t values, int32_t *status)
Sets solenoids on a PH.
HAL_Bool HAL_GetREVPHCompressor(HAL_REVPHHandle handle, int32_t *status)
Get whether compressor is turned on.
void HAL_SetREVPHCompressorConfig(HAL_REVPHHandle handle, const HAL_REVPHCompressorConfig *config, int32_t *status)
Send compressor configuration to the PH.
@ HAL_REVPHCompressorConfigType_kDisabled
Definition: REVPH.h:21
@ HAL_REVPHCompressorConfigType_kAnalog
Definition: REVPH.h:23
@ HAL_REVPHCompressorConfigType_kHybrid
Definition: REVPH.h:24
@ HAL_REVPHCompressorConfigType_kDigital
Definition: REVPH.h:22
int32_t HAL_Bool
Definition: Types.h:73
HAL_Handle HAL_REVPHHandle
Definition: Types.h:71
Storage for compressor config.
Definition: REVPH.h:42
double maxAnalogVoltage
Definition: REVPH.h:44
double minAnalogVoltage
Definition: REVPH.h:43
HAL_Bool useDigital
Definition: REVPH.h:46
HAL_Bool forceDisable
Definition: REVPH.h:45
Storage for REV PH Faults.
Definition: REVPH.h:52
uint32_t brownout
Definition: REVPH.h:72
uint32_t channel1Fault
Definition: REVPH.h:54
uint32_t channel4Fault
Definition: REVPH.h:57
uint32_t solenoidOverCurrent
Definition: REVPH.h:71
uint32_t compressorOverCurrent
Definition: REVPH.h:69
uint32_t channel0Fault
Definition: REVPH.h:53
uint32_t channel14Fault
Definition: REVPH.h:67
uint32_t compressorOpen
Definition: REVPH.h:70
uint32_t canWarning
Definition: REVPH.h:73
uint32_t channel5Fault
Definition: REVPH.h:58
uint32_t channel3Fault
Definition: REVPH.h:56
uint32_t hardwareFault
Definition: REVPH.h:74
uint32_t channel13Fault
Definition: REVPH.h:66
uint32_t channel10Fault
Definition: REVPH.h:63
uint32_t channel15Fault
Definition: REVPH.h:68
uint32_t channel9Fault
Definition: REVPH.h:62
uint32_t channel2Fault
Definition: REVPH.h:55
uint32_t channel12Fault
Definition: REVPH.h:65
uint32_t channel8Fault
Definition: REVPH.h:61
uint32_t channel11Fault
Definition: REVPH.h:64
uint32_t channel7Fault
Definition: REVPH.h:60
uint32_t channel6Fault
Definition: REVPH.h:59
Storage for REV PH Sticky Faults.
Definition: REVPH.h:80
uint32_t brownout
Definition: REVPH.h:84
uint32_t solenoidOverCurrent
Definition: REVPH.h:83
uint32_t compressorOverCurrent
Definition: REVPH.h:81
uint32_t hasReset
Definition: REVPH.h:87
uint32_t compressorOpen
Definition: REVPH.h:82
uint32_t canWarning
Definition: REVPH.h:85
uint32_t canBusOff
Definition: REVPH.h:86
Storage for REV PH Version.
Definition: REVPH.h:30
uint32_t uniqueId
Definition: REVPH.h:36
uint32_t hardwareMinor
Definition: REVPH.h:34
uint32_t firmwareMinor
Definition: REVPH.h:32
uint32_t firmwareFix
Definition: REVPH.h:33
uint32_t hardwareMajor
Definition: REVPH.h:35
uint32_t firmwareMajor
Definition: REVPH.h:31