This class serves as the core manager for the CANTram modular system. It handles module attachment,...
Logging and debug macro definitions for CANTramCore.
Base class for hardware resources.
Definitions for GPIO/output descriptors and provider interfaces.
HardwareResource()=default
Default constructor.
Type
Enumeration of hardware resource types.
Definition HardwareResource.h:26
@ PWM
PWM type.
Definition HardwareResource.h:30
Describes an available output (GPIO or shift register bit).
Definition OutputDefinition.h:24
virtual bool addChannel(OutputDefinition *def)=0
Add/allocate a PWM channel for the given output definition.
HardwareResource::Type getType() override
Get the hardware resource type.
Definition PWMCore.h:56
virtual void begin()
Initialize PWM core resources.
virtual uint8_t getMaxUsages() override
Get the maximum simultaneous usages allowed for this resource.
Definition PWMCore.h:81
bool _initialized
Internal initialized flag.
Definition PWMCore.h:73
virtual void setDuty(OutputDefinition *def, uint16_t duty)=0
Set PWM duty cycle for a registered output.
PWMCore()=default
Protected default constructor.