WPILibC++ 2023.4.3
REV PH Functions

Classes

struct  HAL_REVPHVersion
 Storage for REV PH Version. More...
 
struct  HAL_REVPHCompressorConfig
 Storage for compressor config. More...
 
struct  HAL_REVPHFaults
 Storage for REV PH Faults. More...
 
struct  HAL_REVPHStickyFaults
 Storage for REV PH Sticky Faults. More...
 

Functions

 HAL_ENUM (HAL_REVPHCompressorConfigType)
 The compressor configuration type. More...
 
HAL_REVPHHandle HAL_InitializeREVPH (int32_t module, const char *allocationLocation, int32_t *status)
 
void HAL_FreeREVPH (HAL_REVPHHandle handle)
 
HAL_Bool HAL_CheckREVPHSolenoidChannel (int32_t channel)
 
HAL_Bool HAL_CheckREVPHModuleNumber (int32_t module)
 
HAL_Bool HAL_GetREVPHCompressor (HAL_REVPHHandle handle, int32_t *status)
 
void HAL_SetREVPHCompressorConfig (HAL_REVPHHandle handle, const HAL_REVPHCompressorConfig *config, int32_t *status)
 
void HAL_SetREVPHClosedLoopControlDisabled (HAL_REVPHHandle handle, int32_t *status)
 
void HAL_SetREVPHClosedLoopControlDigital (HAL_REVPHHandle handle, int32_t *status)
 
void HAL_SetREVPHClosedLoopControlAnalog (HAL_REVPHHandle handle, double minAnalogVoltage, double maxAnalogVoltage, int32_t *status)
 
void HAL_SetREVPHClosedLoopControlHybrid (HAL_REVPHHandle handle, double minAnalogVoltage, double maxAnalogVoltage, int32_t *status)
 
HAL_REVPHCompressorConfigType HAL_GetREVPHCompressorConfig (HAL_REVPHHandle handle, int32_t *status)
 
HAL_Bool HAL_GetREVPHPressureSwitch (HAL_REVPHHandle handle, int32_t *status)
 
double HAL_GetREVPHCompressorCurrent (HAL_REVPHHandle handle, int32_t *status)
 
double HAL_GetREVPHAnalogVoltage (HAL_REVPHHandle handle, int32_t channel, int32_t *status)
 
double HAL_GetREVPHVoltage (HAL_REVPHHandle handle, int32_t *status)
 
double HAL_GetREVPH5VVoltage (HAL_REVPHHandle handle, int32_t *status)
 
double HAL_GetREVPHSolenoidCurrent (HAL_REVPHHandle handle, int32_t *status)
 
double HAL_GetREVPHSolenoidVoltage (HAL_REVPHHandle handle, int32_t *status)
 
void HAL_GetREVPHVersion (HAL_REVPHHandle handle, HAL_REVPHVersion *version, int32_t *status)
 
int32_t HAL_GetREVPHSolenoids (HAL_REVPHHandle handle, int32_t *status)
 
void HAL_SetREVPHSolenoids (HAL_REVPHHandle handle, int32_t mask, int32_t values, int32_t *status)
 
void HAL_FireREVPHOneShot (HAL_REVPHHandle handle, int32_t index, int32_t durMs, int32_t *status)
 
void HAL_GetREVPHFaults (HAL_REVPHHandle handle, HAL_REVPHFaults *faults, int32_t *status)
 
void HAL_GetREVPHStickyFaults (HAL_REVPHHandle handle, HAL_REVPHStickyFaults *stickyFaults, int32_t *status)
 
void HAL_ClearREVPHStickyFaults (HAL_REVPHHandle handle, int32_t *status)
 

Detailed Description

Function Documentation

◆ HAL_CheckREVPHModuleNumber()

HAL_Bool HAL_CheckREVPHModuleNumber ( int32_t  module)

◆ HAL_CheckREVPHSolenoidChannel()

HAL_Bool HAL_CheckREVPHSolenoidChannel ( int32_t  channel)

◆ HAL_ClearREVPHStickyFaults()

void HAL_ClearREVPHStickyFaults ( HAL_REVPHHandle  handle,
int32_t *  status 
)

◆ HAL_ENUM()

HAL_ENUM ( HAL_REVPHCompressorConfigType  )

The compressor configuration type.

◆ HAL_FireREVPHOneShot()

void HAL_FireREVPHOneShot ( HAL_REVPHHandle  handle,
int32_t  index,
int32_t  durMs,
int32_t *  status 
)

◆ HAL_FreeREVPH()

void HAL_FreeREVPH ( HAL_REVPHHandle  handle)

◆ HAL_GetREVPH5VVoltage()

double HAL_GetREVPH5VVoltage ( HAL_REVPHHandle  handle,
int32_t *  status 
)

◆ HAL_GetREVPHAnalogVoltage()

double HAL_GetREVPHAnalogVoltage ( HAL_REVPHHandle  handle,
int32_t  channel,
int32_t *  status 
)

◆ HAL_GetREVPHCompressor()

HAL_Bool HAL_GetREVPHCompressor ( HAL_REVPHHandle  handle,
int32_t *  status 
)

◆ HAL_GetREVPHCompressorConfig()

HAL_REVPHCompressorConfigType HAL_GetREVPHCompressorConfig ( HAL_REVPHHandle  handle,
int32_t *  status 
)

◆ HAL_GetREVPHCompressorCurrent()

double HAL_GetREVPHCompressorCurrent ( HAL_REVPHHandle  handle,
int32_t *  status 
)

◆ HAL_GetREVPHFaults()

void HAL_GetREVPHFaults ( HAL_REVPHHandle  handle,
HAL_REVPHFaults faults,
int32_t *  status 
)

◆ HAL_GetREVPHPressureSwitch()

HAL_Bool HAL_GetREVPHPressureSwitch ( HAL_REVPHHandle  handle,
int32_t *  status 
)

◆ HAL_GetREVPHSolenoidCurrent()

double HAL_GetREVPHSolenoidCurrent ( HAL_REVPHHandle  handle,
int32_t *  status 
)

◆ HAL_GetREVPHSolenoids()

int32_t HAL_GetREVPHSolenoids ( HAL_REVPHHandle  handle,
int32_t *  status 
)

◆ HAL_GetREVPHSolenoidVoltage()

double HAL_GetREVPHSolenoidVoltage ( HAL_REVPHHandle  handle,
int32_t *  status 
)

◆ HAL_GetREVPHStickyFaults()

void HAL_GetREVPHStickyFaults ( HAL_REVPHHandle  handle,
HAL_REVPHStickyFaults stickyFaults,
int32_t *  status 
)

◆ HAL_GetREVPHVersion()

void HAL_GetREVPHVersion ( HAL_REVPHHandle  handle,
HAL_REVPHVersion version,
int32_t *  status 
)

◆ HAL_GetREVPHVoltage()

double HAL_GetREVPHVoltage ( HAL_REVPHHandle  handle,
int32_t *  status 
)

◆ HAL_InitializeREVPH()

HAL_REVPHHandle HAL_InitializeREVPH ( int32_t  module,
const char *  allocationLocation,
int32_t *  status 
)

◆ HAL_SetREVPHClosedLoopControlAnalog()

void HAL_SetREVPHClosedLoopControlAnalog ( HAL_REVPHHandle  handle,
double  minAnalogVoltage,
double  maxAnalogVoltage,
int32_t *  status 
)

◆ HAL_SetREVPHClosedLoopControlDigital()

void HAL_SetREVPHClosedLoopControlDigital ( HAL_REVPHHandle  handle,
int32_t *  status 
)

◆ HAL_SetREVPHClosedLoopControlDisabled()

void HAL_SetREVPHClosedLoopControlDisabled ( HAL_REVPHHandle  handle,
int32_t *  status 
)

◆ HAL_SetREVPHClosedLoopControlHybrid()

void HAL_SetREVPHClosedLoopControlHybrid ( HAL_REVPHHandle  handle,
double  minAnalogVoltage,
double  maxAnalogVoltage,
int32_t *  status 
)

◆ HAL_SetREVPHCompressorConfig()

void HAL_SetREVPHCompressorConfig ( HAL_REVPHHandle  handle,
const HAL_REVPHCompressorConfig config,
int32_t *  status 
)

◆ HAL_SetREVPHSolenoids()

void HAL_SetREVPHSolenoids ( HAL_REVPHHandle  handle,
int32_t  mask,
int32_t  values,
int32_t *  status 
)