34#ifndef __SERIALDRIVER_H__
35#define __SERIALDRIVER_H__
61#ifndef HIDE_FROM_DOXYGEN
120#ifndef HIDE_FROM_DOXYGEN
126 int16_t
State()
override {
137 bool State(int16_t newState)
override {
159 bool Speed(uint32_t bitsPerSecond)
override {
183 ShiftRegister::Masks m_ledMask;
185 ShiftRegister::Masks m_controlMask;
187 ShiftRegister::Masks m_polarityMask;
189#ifndef HIDE_FROM_DOXYGEN
194 ShiftRegister::Masks feedBackLedMask,
195 ShiftRegister::Masks controlMask,
196 ShiftRegister::Masks polarityMask,
197 const PeripheralRoute *ctsMisoInfo,
198 const PeripheralRoute *rtsSsInfo,
199 const PeripheralRoute *rxSckInfo,
200 const PeripheralRoute *txMosiInfo,
211 void Refresh()
override {};
Base class for all connector classes.
LED shift register access class.
ClearCorePins
ClearCore PIN definitions.
Definition SysConnectors.h:54
ClearCore I/O Expansion Board Manager Class.
Definition CcioBoardManager.h:91
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 ConnectorModes Mode()
Get the connector's operational mode.
Definition Connector.h:309
virtual int16_t State()=0
Get the connector's last sampled value.
ConnectorModes
All possible operational modes for a connector.
Definition Connector.h:74
ConnectorTypes
The different types of ClearCore connectors.
Definition Connector.h:172
@ SERIAL_TYPE
Definition Connector.h:277
ClearCore ARM Serial Port base class.
Definition SerialBase.h:66
virtual uint32_t Speed() override
Gets the baud rate of the port.
Definition SerialBase.h:231
bool PortIsOpen() override
Return whether or not the port is open.
ClearCore Serial UART/SPI Connector class.
Definition SerialDriver.h:55
virtual ConnectorModes Mode() override
Get the connector's operational mode.
Definition SerialDriver.h:80
Connector::ConnectorTypes Type() override
Get connector type.
Definition SerialDriver.h:107
bool IsWritable() override
Get R/W status of the connector.
Definition SerialDriver.h:116
bool Mode(ConnectorModes newMode) override
Set the connector's operational mode.
void PortClose() override
bool Speed(uint32_t bitsPerSecond) override
Change the baud rate for the port.
Definition SerialDriver.h:159
ClearCore Board Supervisory System Manager.
Definition SysManager.h:58
Namespace to encompass the ClearCore board API.
Definition AdcManager.h:36