|
CANTram Framework 1.0.1
Dieses Framework ermöglicht die Nutzung der CANTram Hardware, einer Mikrocontroller basierten mdoularen Steuerung.
|
Describes an available output (GPIO or shift register bit). More...
#include <OutputDefinition.h>

Public Types | |
| enum | ConfigurationMode { MODE_INPUT , MODE_OUTPUT , MODE_PWM , MODE_INPUT_PULLUP , MODE_NONE } |
Public Member Functions | |
| OutputDefinition (bool isShift, uint8_t pinOrBit, bool adc, bool pwm, bool inputOnly, OutputProvider *provider) | |
| Construct a new OutputDefinition instance. | |
| const String | ConfigurationModeToString (ConfigurationMode mode) |
| String | toString () |
| Create a human-readable string describing the OutputDefinition. | |
Public Attributes | |
| const bool | isShift |
| const uint8_t | pinOrBit |
| const bool | adc |
| const bool | pwm |
| const bool | inputOnly |
| ConfigurationMode | mode = MODE_NONE |
| OutputProvider * | provider |
| bool | initialValue = LOW |
Describes an available output (GPIO or shift register bit).
Holds metadata about an output such as whether it is on a shift register, the pin/bit identifier, and capabilities (ADC, PWM, input-only). Also stores a pointer to the OutputProvider responsible for configuring/controlling the physical output.
|
inline |
Construct a new OutputDefinition instance.
Initializes the definition fields describing the output and records the provider responsible for manipulating the physical pin/bit.
| isShift | True if the output is implemented on a shift register rather than a MCU pin. |
| pinOrBit | Pin number or bit index identifying the physical output. |
| adc | True if the output supports ADC (analog input) functionality. |
| pwm | True if the output supports PWM output. |
| inputOnly | True if the output is input-only (no output capability). |
| provider | Pointer to the OutputProvider that controls this output. |
|
inline |
Create a human-readable string describing the OutputDefinition.
Produces a textual representation suitable for logging that includes the isShift flag, pin/bit identifier and capability flags.
