36#ifndef __CONNECTOR_H__
37#define __CONNECTOR_H__
366 Initialize(m_clearCorePin);
381 return m_clearCorePin;
418 virtual bool State(int16_t newState) = 0;
449 return (m_clearCorePin < 0) ? 0 : (1 << m_clearCorePin);
452#ifndef HIDE_FROM_DOXYGEN
459 virtual int8_t ExternalInterrupt() {
491 virtual void Refresh() = 0;
ClearCorePins
ClearCore PIN definitions.
Definition SysConnectors.h:54
Base class for interacting with all ClearCore connector objects.
Definition Connector.h:62
virtual bool IsInHwFault()=0
Get whether the connector is in a hardware fault state.
virtual bool State(int16_t newState)=0
Set the state of a R/W connector.
int32_t ConnectorIndex()
Accessor for the bit index of this connector in the input register.
Definition Connector.h:380
virtual ConnectorModes Mode()
Get the connector's operational mode.
Definition Connector.h:309
uint32_t InputRegMask()
Get a bit mask representing this connector.
Definition Connector.h:448
virtual int16_t State()=0
Get the connector's last sampled value.
ConnectorModes
All possible operational modes for a connector.
Definition Connector.h:74
@ CPM_MODE_A_DIRECT_B_DIRECT
Definition Connector.h:121
@ CCIO
Definition Connector.h:160
@ CPM_MODE_A_PWM_B_PWM
Definition Connector.h:140
@ RS232
Definition Connector.h:151
@ OUTPUT_WAVE
Definition Connector.h:115
@ OUTPUT_PWM
Definition Connector.h:106
@ TTL
Definition Connector.h:145
@ INPUT_DIGITAL
Definition Connector.h:90
@ OUTPUT_H_BRIDGE
Definition Connector.h:102
@ OUTPUT_ANALOG
Definition Connector.h:94
@ INVALID_NONE
Definition Connector.h:78
@ OUTPUT_TONE
Definition Connector.h:111
@ USB_CDC
Definition Connector.h:164
@ CPM_MODE_A_DIRECT_B_PWM
Definition Connector.h:133
@ OUTPUT_DIGITAL
Definition Connector.h:98
@ SPI
Definition Connector.h:156
@ INPUT_ANALOG
Definition Connector.h:84
@ CPM_MODE_STEP_AND_DIR
Definition Connector.h:126
virtual bool IsWritable()=0
Determine whether values can be written to this connector.
virtual bool Mode(ConnectorModes newMode)=0
Set the connector's operational mode.
void Reinitialize()
Reinitialize this connector to the power-up state.
Definition Connector.h:365
ConnectorTypes
The different types of ClearCore connectors.
Definition Connector.h:172
@ ANALOG_IN_DIGITAL_IN_TYPE
Definition Connector.h:218
@ CPM_TYPE
Definition Connector.h:264
@ SERIAL_USB_TYPE
Definition Connector.h:287
@ SHIFT_REG_TYPE
Definition Connector.h:203
@ ANALOG_OUT_DIGITAL_IN_OUT_TYPE
Definition Connector.h:231
@ SERIAL_TYPE
Definition Connector.h:277
@ DIGITAL_IN_TYPE
Definition Connector.h:185
@ DIGITAL_IN_OUT_TYPE
Definition Connector.h:199
@ H_BRIDGE_TYPE
Definition Connector.h:247
@ CCIO_DIGITAL_IN_OUT_TYPE
Definition Connector.h:295
virtual ConnectorTypes Type()=0
Get the connector type.
ClearCore Board Supervisory System Manager.
Definition SysManager.h:58
Namespace to encompass the ClearCore board API.
Definition AdcManager.h:36