WPILibC++
2018.4.1-20181002134759-1212-g7b471d8
|
Functions | |
HAL_SolenoidHandle | HAL_InitializeSolenoidPort (HAL_PortHandle portHandle, int32_t *status) |
Initializes a solenoid port. More... | |
void | HAL_FreeSolenoidPort (HAL_SolenoidHandle solenoidPortHandle) |
Frees a solenoid port. More... | |
HAL_Bool | HAL_CheckSolenoidModule (int32_t module) |
Checks if a solenoid module is in the valid range. More... | |
HAL_Bool | HAL_CheckSolenoidChannel (int32_t channel) |
Checks if a solenoid channel is in the valid range. More... | |
HAL_Bool | HAL_GetSolenoid (HAL_SolenoidHandle solenoidPortHandle, int32_t *status) |
Gets the current solenoid output value. More... | |
int32_t | HAL_GetAllSolenoids (int32_t module, int32_t *status) |
Gets the status of all solenoids on a specific module. More... | |
void | HAL_SetSolenoid (HAL_SolenoidHandle solenoidPortHandle, HAL_Bool value, int32_t *status) |
Sets a solenoid output value. More... | |
void | HAL_SetAllSolenoids (int32_t module, int32_t state, int32_t *status) |
Sets all channels on a specific module. More... | |
int32_t | HAL_GetPCMSolenoidBlackList (int32_t module, int32_t *status) |
Gets the channels blacklisted from being enabled on a module. More... | |
HAL_Bool | HAL_GetPCMSolenoidVoltageStickyFault (int32_t module, int32_t *status) |
Gets if a specific module has an over or under voltage sticky fault. More... | |
HAL_Bool | HAL_GetPCMSolenoidVoltageFault (int32_t module, int32_t *status) |
Gets if a specific module has an over or under voltage fault. More... | |
void | HAL_ClearAllPCMStickyFaults (int32_t module, int32_t *status) |
Clears all faults on a module. More... | |
void | HAL_SetOneShotDuration (HAL_SolenoidHandle solenoidPortHandle, int32_t durMS, int32_t *status) |
Sets the one shot duration on a solenoid channel. More... | |
void | HAL_FireOneShot (HAL_SolenoidHandle solenoidPortHandle, int32_t *status) |
Fires a single pulse on a solenoid channel. More... | |
HAL_Bool HAL_CheckSolenoidChannel | ( | int32_t | channel | ) |
Checks if a solenoid channel is in the valid range.
channel | the channel number to check |
HAL_Bool HAL_CheckSolenoidModule | ( | int32_t | module | ) |
Checks if a solenoid module is in the valid range.
module | the module number to check |
void HAL_ClearAllPCMStickyFaults | ( | int32_t | module, |
int32_t * | status | ||
) |
Clears all faults on a module.
module | the module to clear |
void HAL_FireOneShot | ( | HAL_SolenoidHandle | solenoidPortHandle, |
int32_t * | status | ||
) |
Fires a single pulse on a solenoid channel.
The pulse is the duration set by HAL_SetOneShotDuration().
solenoidPortHandle | the solenoid handle |
void HAL_FreeSolenoidPort | ( | HAL_SolenoidHandle | solenoidPortHandle | ) |
Frees a solenoid port.
solenoidPortHandle | the solenoid handle |
int32_t HAL_GetAllSolenoids | ( | int32_t | module, |
int32_t * | status | ||
) |
Gets the status of all solenoids on a specific module.
module | the module to check |
int32_t HAL_GetPCMSolenoidBlackList | ( | int32_t | module, |
int32_t * | status | ||
) |
Gets the channels blacklisted from being enabled on a module.
module | the module to check bitmask of the blacklisted channels, 1 for true 0 for false |
HAL_Bool HAL_GetPCMSolenoidVoltageFault | ( | int32_t | module, |
int32_t * | status | ||
) |
Gets if a specific module has an over or under voltage fault.
module | the module to check |
HAL_Bool HAL_GetPCMSolenoidVoltageStickyFault | ( | int32_t | module, |
int32_t * | status | ||
) |
Gets if a specific module has an over or under voltage sticky fault.
module | the module to check |
HAL_Bool HAL_GetSolenoid | ( | HAL_SolenoidHandle | solenoidPortHandle, |
int32_t * | status | ||
) |
Gets the current solenoid output value.
solenoidPortHandle | the solenoid handle |
HAL_SolenoidHandle HAL_InitializeSolenoidPort | ( | HAL_PortHandle | portHandle, |
int32_t * | status | ||
) |
Initializes a solenoid port.
portHandle | the port handle of the module and channel to initialize |
void HAL_SetAllSolenoids | ( | int32_t | module, |
int32_t | state, | ||
int32_t * | status | ||
) |
Sets all channels on a specific module.
module | the module to set the channels on |
state | bitmask of the channels to set, 1 for on 0 for off |
void HAL_SetOneShotDuration | ( | HAL_SolenoidHandle | solenoidPortHandle, |
int32_t | durMS, | ||
int32_t * | status | ||
) |
Sets the one shot duration on a solenoid channel.
solenoidPortHandle | the solenoid handle |
durMS | the one shot duration in ms |
void HAL_SetSolenoid | ( | HAL_SolenoidHandle | solenoidPortHandle, |
HAL_Bool | value, | ||
int32_t * | status | ||
) |
Sets a solenoid output value.
solenoidPortHandle | the solenoid handle |
value | true for on, false for off |