|
CANTram Framework 1.0.1
Dieses Framework ermöglicht die Nutzung der CANTram Hardware, einer Mikrocontroller basierten mdoularen Steuerung.
|
Abstract interface for providers that control outputs. More...
#include <OutputDefinition.h>

Public Member Functions | |
| virtual bool | configureOutput (OutputDefinition *def, OutputDefinition::ConfigurationMode mode)=0 |
| Configure an output's direction/mode. | |
| virtual bool | setOutput (OutputDefinition *def, bool state)=0 |
| Set the logical state of an output. | |
| virtual bool | getOutput (OutputDefinition *def)=0 |
| Read the current logical state of an output. | |
| virtual void | enableOutputs (bool state=true) |
| Enable or disable all outputs managed by this provider. | |
| virtual void | disableOutputs () |
| Disable all outputs managed by this provider. | |
Abstract interface for providers that control outputs.
Implementors provide mechanisms to configure outputs (mode), set output state and read state. Concrete providers adapt MCU GPIO, expanders, or shift registers to the OutputDefinition API.
|
pure virtual |
Configure an output's direction/mode.
Configure the physical output referenced by def to the given mode (e.g., INPUT, OUTPUT).
| def | Pointer to the OutputDefinition describing the output to configure. |
| mode | Mode value to set (Arduino-style constants like INPUT/OUTPUT). |
Implemented in MainModuleV1_0.
|
inlinevirtual |
Disable all outputs managed by this provider.
Convenience method to disable outputs. Calls enableOutputs(false).

|
inlinevirtual |
Enable or disable all outputs managed by this provider.
Globally enable or disable outputs. Implementation-specific behavior (e.g., power gating). This method is called by the CANTramCore during initialization.
| state | true to enable outputs, false to disable. |
Reimplemented in MainModuleV1_0.

|
pure virtual |
Read the current logical state of an output.
Query the provider for the current state of the specified output. For inputs this reads the actual level; for outputs the implementation may return the last set state.
| def | Pointer to the OutputDefinition to read. |
Implemented in MainModuleV1_0.
|
pure virtual |
Set the logical state of an output.
Drive the physical output described by def to the requested boolean state.
| def | Pointer to the OutputDefinition describing the output to change. |
| state | Desired logical state (true = HIGH, false = LOW). |
Implemented in MainModuleV1_0.
