27#ifndef __DIGITALINANALOGIN_H__
28#define __DIGITALINANALOGIN_H__
68#ifndef HIDE_FROM_DOXYGEN
188 if (!m_analogValid) {
191 return AdcManager::Instance().AnalogVoltage(m_adcChannel);
194#ifndef HIDE_FROM_DOXYGEN
204 bool State(int16_t newState)
override {
212 ShiftRegister::Masks m_modeControlBitMask;
216 volatile const uint16_t *m_adcResultConvertedPtr;
217 volatile const uint16_t *m_adcResultConvertedFilteredPtr;
218 volatile bool m_analogValid;
220#ifndef HIDE_FROM_DOXYGEN
224 DigitalInAnalogIn(
enum ShiftRegister::Masks ledMask,
225 enum ShiftRegister::Masks modeControlMask,
226 const PeripheralRoute *inputInfo,
238 void Refresh()
override;
ADC Peripheral Manager for the ClearCore Board.
Base class for all connector classes.
ClearCore Digital Input Connector class.
Defines the Peripheral Route structure, used in HardwareMapping.
LED shift register access class.
ClearCorePins
ClearCore PIN definitions.
Definition SysConnectors.h:54
AdcChannels
Definition AdcManager.h:57
FilterUnits
Units for the filter time constant.
Definition AdcManager.h:75
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
ConnectorTypes
The different types of ClearCore connectors.
Definition Connector.h:172
@ ANALOG_IN_DIGITAL_IN_TYPE
Definition Connector.h:218
ClearCore analog input connector class.
Definition DigitalInAnalogIn.h:58
int16_t State() override
Get the connector's last majority-filtered sampled value.
Connector::ConnectorTypes Type() override
Get connector type.
Definition DigitalInAnalogIn.h:124
virtual ConnectorModes Mode() override
Get the connector's operational mode.
Definition DigitalInAnalogIn.h:89
bool IsWritable() override
Is this connector able to be written to?
Definition DigitalInAnalogIn.h:139
static const uint16_t ANALOG_INPUT_FILTER_TC_MS_DEFAULT
Definition DigitalInAnalogIn.h:66
bool Mode(ConnectorModes newMode) override
Set the connector's operational mode.
bool FilterTc(uint16_t tc, AdcManager::FilterUnits theUnits)
Set the time constant for the analog input filter.
float AnalogVoltage()
Returns the analog voltage of the connector in volts.
Definition DigitalInAnalogIn.h:186
ClearCore digital input connector class.
Definition DigitalIn.h:70
ClearCore Board Supervisory System Manager.
Definition SysManager.h:58
Namespace to encompass the ClearCore board API.
Definition AdcManager.h:36