|
CANTram Framework 1.0.1
Dieses Framework ermöglicht die Nutzung der CANTram Hardware, einer Mikrocontroller basierten mdoularen Steuerung.
|


Public Member Functions | |
| String | getHWType () const override |
| Get the hardware type string. | |
| String | getHWVersion () const override |
| Get the hardware version string. | |
| String | getFWVersion () const override |
| Get the firmware version string. | |
| uint8_t | getGPIODemand () const override |
| Get the GPIO demand of the module. | |
| uint8_t | getGPIOSupply () const override |
| Get the GPIO supply capacity of the module. | |
| bool | attachModule (uint8_t slot, uint8_t gpioStart) override |
| Attach module to a slot and set GPIO start. | |
| bool | provideGPIOs () override |
| Provide GPIO definitions to the core. | |
| bool | requestGPIOs () override |
| Request and configure GPIOs used by the module. | |
| bool | provideHardwareResources () override |
| Provide hardware resources to the core. | |
| bool | requestHardwareResources () override |
| Request hardware resources required by the module. | |
| bool | addInterfaces () override |
| Add interface objects to the module's interface list. | |
| bool | initialize () override |
| Initialize the analog module and external ADC chip interface. | |
| void | cycle (uint8_t *response) override |
| Periodic cycle handler called by the core. | |
| bool | reset () override |
| Reset the module and its interfaces. | |
| Interface ** | getInterfaces () override |
| Get pointer to module's interface array. | |
| size_t | getInterfaceCount () override |
| Get number of interfaces provided by the module. | |
| Public Member Functions inherited from CANTramModule | |
| CANTramModule ()=default | |
| Default constructor. | |
| virtual | ~CANTramModule ()=default |
| Destructor. | |
| uint8_t | getSlot () const |
| Get assigned slot index. | |
| uint8_t | getGPIOStart () const |
| Get starting GPIO index assigned to the module. | |
| virtual bool | preInitialize () |
| Pre-initialize the module after attachment and provisioning. | |
Additional Inherited Members | |
| Protected Attributes inherited from CANTramModule | |
| uint8_t | SLOT = 0 |
| uint8_t | GPIO_START = 0 |
|
overridevirtual |
Add interface objects to the module's interface list.
Constructs and names analog input and output interface objects and places pointers into the module interface array. Input interfaces are validated only if a valid CS output definition exists.
Implements CANTramModule.
|
overridevirtual |
Attach module to a slot and set GPIO start.
Calls base class attach to register slot and gpio start. Module-specific initialization is minimal here.
| slot | Module slot index. |
| gpioStart | Starting GPIO index assigned to this module. |
Reimplemented from CANTramModule.

|
overridevirtual |
Periodic cycle handler called by the core.
Performs a burst read from the external ADC chip, logs and validates the status, updates analog input interface values, and propagates PWM output values to the PWM providers for validated outputs.
| response | Optional pointer to a response buffer where the module can write response bytes; may be nullptr if unused. |
Reimplemented from CANTramModule.

|
inlineoverridevirtual |
Get the firmware version string.
Returns the firmware version string implemented by the module.
Implements CANTramModule.
|
inlineoverridevirtual |
Get the GPIO demand of the module.
Returns how many GPIOs this module requires from the core.
Implements CANTramModule.
|
inlineoverridevirtual |
Get the GPIO supply capacity of the module.
Returns how many GPIOs this module provides/supplies to the system.
Implements CANTramModule.
|
inlineoverridevirtual |
Get the hardware type string.
Returns a human readable hardware type identifier for the concrete module implementation.
Implements CANTramModule.
|
inlineoverridevirtual |
Get the hardware version string.
Returns the hardware revision/version string for the module.
Implements CANTramModule.
|
inlineoverridevirtual |
Get number of interfaces provided by the module.
Return the number of entries in the interfaces array returned by getInterfaces().
Implements CANTramModule.
|
inlineoverridevirtual |
Get pointer to module's interface array.
Returns a pointer to the internal Interface* array used by the core to enumerate interfaces.
Implements CANTramModule.
|
overridevirtual |
Initialize the analog module and external ADC chip interface.
Activates external chip-select management on the input driver, installs a CS control callback that uses the module's CS output provider, and starts the input driver. Logs an error if initialization fails.
Implements CANTramModule.
|
overridevirtual |
Provide GPIO definitions to the core.
This module does not add additional GPIO definitions beyond those provided elsewhere, so this function currently returns true and acts as a placeholder for future additions.
Implements CANTramModule.
|
overridevirtual |
Provide hardware resources to the core.
Currently this module does not attach additional hardware resources (e.g., cores) to CANTramCore.
Implements CANTramModule.
|
overridevirtual |
Request and configure GPIOs used by the module.
Retrieves the chip-select output definition and PWM output definitions from CANTramCore. Configures the CS pin as an output and sets its initial state high to deselect the external ADC chip.
Implements CANTramModule.

|
overridevirtual |
Request hardware resources required by the module.
Registers analog output interfaces and requests PWM channels from the PWM provider for each output. Validates interfaces when registration succeeds.
Implements CANTramModule.

|
overridevirtual |
Reset the module and its interfaces.
Calls base reset, attempts to reset the external input chip, and clears interface values to zero.
Reimplemented from CANTramModule.
