mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Implement GetAllSolenoids in the HAL so that SolenoidBase doesn't have to read each solenoid individually. Change-Id: I85559565949f7a7119ead410187235636a63f0ed
20 lines
753 B
C++
20 lines
753 B
C++
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
extern "C"
|
|
{
|
|
void* initializeSolenoidPort(void* port_pointer, int32_t *status);
|
|
void freeSolenoidPort(void* solenoid_port_pointer);
|
|
bool checkSolenoidModule(uint8_t module);
|
|
|
|
bool getSolenoid(void* solenoid_port_pointer, int32_t *status);
|
|
uint8_t getAllSolenoids(void* solenoid_port_pointer, int32_t *status);
|
|
void setSolenoid(void* solenoid_port_pointer, bool value, int32_t *status);
|
|
|
|
int getPCMSolenoidBlackList(void* solenoid_port_pointer, int32_t *status);
|
|
bool getPCMSolenoidVoltageStickyFault(void* solenoid_port_pointer, int32_t *status);
|
|
bool getPCMSolenoidVoltageFault(void* solenoid_port_pointer, int32_t *status);
|
|
void clearAllPCMStickyFaults_sol(void *solenoid_port_pointer, int32_t *status);
|
|
}
|