WPILibC++ 2023.4.3
CTRE PCM Functions

Functions

HAL_CTREPCMHandle HAL_InitializeCTREPCM (int32_t module, const char *allocationLocation, int32_t *status)
 
void HAL_FreeCTREPCM (HAL_CTREPCMHandle handle)
 
HAL_Bool HAL_CheckCTREPCMSolenoidChannel (int32_t channel)
 
HAL_Bool HAL_GetCTREPCMCompressor (HAL_CTREPCMHandle handle, int32_t *status)
 
void HAL_SetCTREPCMClosedLoopControl (HAL_CTREPCMHandle handle, HAL_Bool enabled, int32_t *status)
 
HAL_Bool HAL_GetCTREPCMClosedLoopControl (HAL_CTREPCMHandle handle, int32_t *status)
 
HAL_Bool HAL_GetCTREPCMPressureSwitch (HAL_CTREPCMHandle handle, int32_t *status)
 
double HAL_GetCTREPCMCompressorCurrent (HAL_CTREPCMHandle handle, int32_t *status)
 
HAL_Bool HAL_GetCTREPCMCompressorCurrentTooHighFault (HAL_CTREPCMHandle handle, int32_t *status)
 
HAL_Bool HAL_GetCTREPCMCompressorCurrentTooHighStickyFault (HAL_CTREPCMHandle handle, int32_t *status)
 
HAL_Bool HAL_GetCTREPCMCompressorShortedStickyFault (HAL_CTREPCMHandle handle, int32_t *status)
 
HAL_Bool HAL_GetCTREPCMCompressorShortedFault (HAL_CTREPCMHandle handle, int32_t *status)
 
HAL_Bool HAL_GetCTREPCMCompressorNotConnectedStickyFault (HAL_CTREPCMHandle handle, int32_t *status)
 
HAL_Bool HAL_GetCTREPCMCompressorNotConnectedFault (HAL_CTREPCMHandle handle, int32_t *status)
 
int32_t HAL_GetCTREPCMSolenoids (HAL_CTREPCMHandle handle, int32_t *status)
 
void HAL_SetCTREPCMSolenoids (HAL_CTREPCMHandle handle, int32_t mask, int32_t values, int32_t *status)
 
int32_t HAL_GetCTREPCMSolenoidDisabledList (HAL_CTREPCMHandle handle, int32_t *status)
 
HAL_Bool HAL_GetCTREPCMSolenoidVoltageStickyFault (HAL_CTREPCMHandle handle, int32_t *status)
 
HAL_Bool HAL_GetCTREPCMSolenoidVoltageFault (HAL_CTREPCMHandle handle, int32_t *status)
 
void HAL_ClearAllCTREPCMStickyFaults (HAL_CTREPCMHandle handle, int32_t *status)
 
void HAL_FireCTREPCMOneShot (HAL_CTREPCMHandle handle, int32_t index, int32_t *status)
 
void HAL_SetCTREPCMOneShotDuration (HAL_CTREPCMHandle handle, int32_t index, int32_t durMs, int32_t *status)
 

Detailed Description

Function Documentation

◆ HAL_CheckCTREPCMSolenoidChannel()

HAL_Bool HAL_CheckCTREPCMSolenoidChannel ( int32_t  channel)

◆ HAL_ClearAllCTREPCMStickyFaults()

void HAL_ClearAllCTREPCMStickyFaults ( HAL_CTREPCMHandle  handle,
int32_t *  status 
)

◆ HAL_FireCTREPCMOneShot()

void HAL_FireCTREPCMOneShot ( HAL_CTREPCMHandle  handle,
int32_t  index,
int32_t *  status 
)

◆ HAL_FreeCTREPCM()

void HAL_FreeCTREPCM ( HAL_CTREPCMHandle  handle)

◆ HAL_GetCTREPCMClosedLoopControl()

HAL_Bool HAL_GetCTREPCMClosedLoopControl ( HAL_CTREPCMHandle  handle,
int32_t *  status 
)

◆ HAL_GetCTREPCMCompressor()

HAL_Bool HAL_GetCTREPCMCompressor ( HAL_CTREPCMHandle  handle,
int32_t *  status 
)

◆ HAL_GetCTREPCMCompressorCurrent()

double HAL_GetCTREPCMCompressorCurrent ( HAL_CTREPCMHandle  handle,
int32_t *  status 
)

◆ HAL_GetCTREPCMCompressorCurrentTooHighFault()

HAL_Bool HAL_GetCTREPCMCompressorCurrentTooHighFault ( HAL_CTREPCMHandle  handle,
int32_t *  status 
)

◆ HAL_GetCTREPCMCompressorCurrentTooHighStickyFault()

HAL_Bool HAL_GetCTREPCMCompressorCurrentTooHighStickyFault ( HAL_CTREPCMHandle  handle,
int32_t *  status 
)

◆ HAL_GetCTREPCMCompressorNotConnectedFault()

HAL_Bool HAL_GetCTREPCMCompressorNotConnectedFault ( HAL_CTREPCMHandle  handle,
int32_t *  status 
)

◆ HAL_GetCTREPCMCompressorNotConnectedStickyFault()

HAL_Bool HAL_GetCTREPCMCompressorNotConnectedStickyFault ( HAL_CTREPCMHandle  handle,
int32_t *  status 
)

◆ HAL_GetCTREPCMCompressorShortedFault()

HAL_Bool HAL_GetCTREPCMCompressorShortedFault ( HAL_CTREPCMHandle  handle,
int32_t *  status 
)

◆ HAL_GetCTREPCMCompressorShortedStickyFault()

HAL_Bool HAL_GetCTREPCMCompressorShortedStickyFault ( HAL_CTREPCMHandle  handle,
int32_t *  status 
)

◆ HAL_GetCTREPCMPressureSwitch()

HAL_Bool HAL_GetCTREPCMPressureSwitch ( HAL_CTREPCMHandle  handle,
int32_t *  status 
)

◆ HAL_GetCTREPCMSolenoidDisabledList()

int32_t HAL_GetCTREPCMSolenoidDisabledList ( HAL_CTREPCMHandle  handle,
int32_t *  status 
)

◆ HAL_GetCTREPCMSolenoids()

int32_t HAL_GetCTREPCMSolenoids ( HAL_CTREPCMHandle  handle,
int32_t *  status 
)

◆ HAL_GetCTREPCMSolenoidVoltageFault()

HAL_Bool HAL_GetCTREPCMSolenoidVoltageFault ( HAL_CTREPCMHandle  handle,
int32_t *  status 
)

◆ HAL_GetCTREPCMSolenoidVoltageStickyFault()

HAL_Bool HAL_GetCTREPCMSolenoidVoltageStickyFault ( HAL_CTREPCMHandle  handle,
int32_t *  status 
)

◆ HAL_InitializeCTREPCM()

HAL_CTREPCMHandle HAL_InitializeCTREPCM ( int32_t  module,
const char *  allocationLocation,
int32_t *  status 
)

◆ HAL_SetCTREPCMClosedLoopControl()

void HAL_SetCTREPCMClosedLoopControl ( HAL_CTREPCMHandle  handle,
HAL_Bool  enabled,
int32_t *  status 
)

◆ HAL_SetCTREPCMOneShotDuration()

void HAL_SetCTREPCMOneShotDuration ( HAL_CTREPCMHandle  handle,
int32_t  index,
int32_t  durMs,
int32_t *  status 
)

◆ HAL_SetCTREPCMSolenoids()

void HAL_SetCTREPCMSolenoids ( HAL_CTREPCMHandle  handle,
int32_t  mask,
int32_t  values,
int32_t *  status 
)