29#ifndef __DIGITALINOUTANALOGOUT_H__
30#define __DIGITALINOUTANALOGOUT_H__
57#ifndef HIDE_FROM_DOXYGEN
157 bool State(int16_t newState)
override;
190#ifndef HIDE_FROM_DOXYGEN
200 void AnalogWriteUncalibrated(uint16_t value);
221 bool DacStoreCalibration(uint16_t zero, uint16_t span);
225 uint32_t m_analogPort;
226 uint32_t m_analogDataBit;
230#ifndef HIDE_FROM_DOXYGEN
235 const PeripheralRoute *inputInfo,
236 const PeripheralRoute *outputInfo,
237 const PeripheralRoute *outputAnalogInfo,
238 bool digitalLogicInversion);
249 void Refresh()
override;
260 void DacInitialize();
277 void DacLoadCalibration();
287 void DacRegisterWrite(uint16_t value);
Base class for all connector classes.
ClearCore Digital Output Connector class.
Defines the Peripheral Route structure, used in HardwareMapping.
LED shift register access class.
ClearCorePins
ClearCore PIN definitions.
Definition SysConnectors.h:54
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_OUT_DIGITAL_IN_OUT_TYPE
Definition Connector.h:231
ClearCore digital input/output with analog current output Connector class.
Definition DigitalInOutAnalogOut.h:53
bool IsWritable() override
Get R/W status of the connector.
Connector::ConnectorTypes Type() override
Get connector type.
Definition DigitalInOutAnalogOut.h:105
int16_t State() override
Get connector's last sampled digital value.
void AnalogWrite(uint16_t value)
Command the DAC to output a (calibrated) value.
void OutputCurrent(uint16_t currentuA)
Command the DAC to output the given number of microamps (uA).
bool State(int16_t newState) override
Set the output value of the connector.
virtual ConnectorModes Mode() override
Get the connector's operational mode.
Definition DigitalInOutAnalogOut.h:70
bool Mode(ConnectorModes newMode) override
Set connector's operational mode.
ClearCore digital output connector class.
Definition DigitalInOut.h:60
ClearCore Board Supervisory System Manager.
Definition SysManager.h:58
Namespace to encompass the ClearCore board API.
Definition AdcManager.h:36