|
DUDS
|
Distributed Update of Data from Something
|
A base class for classes that represent one or more pins on a single DigitalPort, but do not provide access. More...
#include <DigitalPinBase.hpp>
Public Member Functions | |
| const std::shared_ptr< DigitalPort > & | port () const |
| Returns the port that grants access to the pin(s) referenced by this object. More... | |
| void | reset () |
| Resets the shared pointer to the DigitalPort so that this object no longer represents a pin. More... | |
Protected Member Functions | |
| DigitalPinBase ()=default | |
| Cannot be constructed using this base class, but allows the construction of a useless object without a DigitalPort. More... | |
| DigitalPinBase (const std::shared_ptr< DigitalPort > &port) | |
| Initializes the port. More... | |
| ~DigitalPinBase ()=default | |
| Cannot be destructed using this base class to avoid the need for a virtual destructor. More... | |
Private Attributes | |
| std::shared_ptr< DigitalPort > | dp |
| The port object that can grant access to the pin(s). More... | |
A base class for classes that represent one or more pins on a single DigitalPort, but do not provide access.
There will likely be no need or reason to keep objects of this type.
Definition at line 25 of file DigitalPinBase.hpp.
|
protecteddefault |
Cannot be constructed using this base class, but allows the construction of a useless object without a DigitalPort.
|
protecteddefault |
Cannot be destructed using this base class to avoid the need for a virtual destructor.
There is no point to keeping objects of this base class.
|
inlineprotected |
Initializes the port.
Definition at line 45 of file DigitalPinBase.hpp.
|
inline |
Returns the port that grants access to the pin(s) referenced by this object.
Definition at line 51 of file DigitalPinBase.hpp.
Referenced by duds::hardware::interface::DigitalPin::access(), duds::hardware::interface::DigitalPinSet::access(), duds::hardware::interface::DigitalPin::capabilities(), duds::hardware::interface::DigitalPinSet::capabilities(), duds::hardware::interface::DigitalPin::configuration(), duds::hardware::interface::DigitalPinSet::configuration(), duds::hardware::interface::DigitalPin::havePin(), duds::hardware::interface::DigitalPinSet::havePins(), duds::hardware::interface::DigitalPinSet::independentConfig(), duds::hardware::interface::DigitalPin::localId(), duds::hardware::interface::DigitalPinSet::localId(), duds::hardware::interface::DigitalPinSet::localIds(), duds::hardware::interface::DigitalPin::proposeConfig(), duds::hardware::interface::DigitalPinSet::proposeConfig(), and duds::hardware::interface::DigitalPinSet::simultaneousOperations().
|
inline |
Resets the shared pointer to the DigitalPort so that this object no longer represents a pin.
Definition at line 58 of file DigitalPinBase.hpp.
Referenced by duds::hardware::interface::PinConfiguration::getPin().
|
private |
The port object that can grant access to the pin(s).
Definition at line 29 of file DigitalPinBase.hpp.
Referenced by port().