150 bool State(int16_t newState)
override;
171 m_filterLength = samples;
172 m_filterTicksLeft = samples;
258 uint16_t pulseCount = 0,
bool blockUntilDone =
false);
278#ifndef HIDE_FROM_DOXYGEN
297 void Refresh()
override {}
305 uint16_t m_filterLength;
307 uint16_t m_filterTicksLeft;
309 uint16_t m_overloadTripCnt;
311 uint16_t m_overloadFoldbackCnt;
313 uint32_t m_pulseOnTicks;
314 uint32_t m_pulseOffTicks;
315 uint32_t m_pulseTicksRemaining;
316 uint16_t m_pulseStopCount;
317 uint16_t m_pulseCounter;
Base class for all connector classes.
ClearCorePins
ClearCore PIN definitions.
Definition SysConnectors.h:54
ClearCore I/O Expansion Board Manager Class.
Definition CcioBoardManager.h:91
Connector class for an individual CCIO-8 pin.
Definition CcioPin.h:53
void OutputPulsesStart(uint32_t onTime, uint32_t offTime, uint16_t pulseCount=0, bool blockUntilDone=false)
Start an output pulse.
bool IsInHwFault() override
Check whether the connector is in a hardware fault state.
bool State(int16_t newState) override
Set the output state of the connector.
Connector::ConnectorTypes Type() override
Get connector type.
Definition CcioPin.h:104
void OutputPulsesStop(bool stopImmediately=true)
Stop an output pulse.
int16_t State() override
In input mode, get the connector's last filtered sampled value. In output mode, get the connector's o...
bool InputFallen()
Clear on read accessor for this connector's falling input state.
void Filter_ms(uint16_t len)
Set the connector's digital filter length in ms.
virtual ConnectorModes Mode() override
Get the connector's operational mode.
Definition CcioPin.h:71
void FilterLength(uint16_t samples)
Set the connector's digital filter length in samples. The default is 3 samples.
Definition CcioPin.h:170
virtual bool Mode(ConnectorModes newMode) override
Set the connector's operational mode.
bool IsWritable() override
Get R/W status of the connector.
Definition CcioPin.h:120
bool InputRisen()
Clear on read accessor for this connector's rising input state.
Base class for interacting with all ClearCore connector objects.
Definition Connector.h:62
virtual ConnectorModes Mode()
Get the connector's operational mode.
Definition Connector.h:309
ConnectorModes
All possible operational modes for a connector.
Definition Connector.h:74
@ OUTPUT_DIGITAL
Definition Connector.h:98
ConnectorTypes
The different types of ClearCore connectors.
Definition Connector.h:172
@ CCIO_DIGITAL_IN_OUT_TYPE
Definition Connector.h:295
Namespace to encompass the ClearCore board API.
Definition AdcManager.h:36