ClearCore Library
|
ClearCore LED control class.
This class manages access to the LED shift register so LEDs may be controlled at the connector level.
ClearCore LED control class. More...
#include <LedDriver.h>
Public Member Functions | |
Connector::ConnectorTypes | Type () override |
Get connector type. More... | |
bool | IsWritable () override |
Get R/W status of the connector. More... | |
int16_t | State () override |
Get LED's last sampled state. More... | |
bool | State (int16_t newState) override |
Set the state of the LED. More... | |
Public Member Functions inherited from ClearCore::Connector | |
virtual ConnectorModes | Mode () |
Get the connector's operational mode. More... | |
virtual bool | Mode (ConnectorModes newMode)=0 |
Set the connector's operational mode. More... | |
void | Reinitialize () |
Reinitialize this connector to the power-up state. More... | |
int32_t | ConnectorIndex () |
Accessor for the bit index of this connector in the input register. More... | |
virtual bool | IsInHwFault ()=0 |
Get whether the connector is in a hardware fault state. More... | |
uint32_t | InputRegMask () |
Get a bit mask representing this connector. More... | |
Additional Inherited Members | |
Public Types inherited from ClearCore::Connector | |
enum | ConnectorModes { INVALID_NONE, INPUT_ANALOG, INPUT_DIGITAL, OUTPUT_ANALOG, OUTPUT_DIGITAL, OUTPUT_H_BRIDGE, OUTPUT_PWM, OUTPUT_TONE, OUTPUT_WAVE, CPM_MODE_A_DIRECT_B_DIRECT, CPM_MODE_STEP_AND_DIR, CPM_MODE_A_DIRECT_B_PWM, CPM_MODE_A_PWM_B_PWM, TTL, RS232, SPI, CCIO, USB_CDC } |
All possible operational modes for a connector. More... | |
enum | ConnectorTypes { DIGITAL_IN_TYPE, DIGITAL_IN_OUT_TYPE, SHIFT_REG_TYPE, ANALOG_IN_DIGITAL_IN_TYPE, ANALOG_OUT_DIGITAL_IN_OUT_TYPE, H_BRIDGE_TYPE, CPM_TYPE, SERIAL_TYPE, SERIAL_USB_TYPE, CCIO_DIGITAL_IN_OUT_TYPE } |
The different types of ClearCore connectors. More... | |
|
inlineoverridevirtual |
Get R/W status of the connector.
Implements ClearCore::Connector.
|
overridevirtual |
|
overridevirtual |
Set the state of the LED.
[in] | newState | New state to set for the LED. |
Implements ClearCore::Connector.
|
inlineoverridevirtual |
Get connector type.
Implements ClearCore::Connector.