|
CANTram Framework 1.0.1
Dieses Framework ermöglicht die Nutzung der CANTram Hardware, einer Mikrocontroller basierten mdoularen Steuerung.
|
Extended output provider interface for PWM-capable outputs. More...
#include <OutputDefinition.h>


Public Member Functions | |
| virtual bool | setPWM (OutputDefinition *def, uint16_t value)=0 |
| Set a PWM value on the specified output. | |
| virtual bool | registerPWMChannel (OutputDefinition *def)=0 |
| Register/allocate a PWM channel for the given output. | |
| Public Member Functions inherited from OutputProvider | |
| 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. | |
Extended output provider interface for PWM-capable outputs.
Adds PWM-specific operations on top of OutputProvider for setting PWM duty and registering channels.
|
pure virtual |
Register/allocate a PWM channel for the given output.
Request any internal resources needed to drive PWM on the specified output (timer/channel allocation).
| def | Pointer to the OutputDefinition to register for PWM. |
Implemented in MainModuleV1_0.

|
pure virtual |
Set a PWM value on the specified output.
Drive the output described by def with a PWM duty corresponding to value. Duty scale/units are implementation-specific (e.g., 0..4095 for 12-bit resolution).
| def | Pointer to the OutputDefinition that supports PWM. |
| value | PWM duty value to apply. |
Implemented in MainModuleV1_0.
