|
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 this module to a slot and assign GPIO range. | |
| bool | provideGPIOs () override |
| Provide GPIO definitions to the core. | |
| bool | requestGPIOs () override |
| Request GPIO definitions from the core. | |
| bool | provideHardwareResources () override |
| Provide hardware resources (e.g., I2C, SPI, UART) to the core. | |
| bool | requestHardwareResources () override |
| Request hardware resources from the core. | |
| bool | addInterfaces () override |
| Setup and validate module interfaces. | |
| bool | initialize () override |
| Initialize the module after attachment and provisioning. | |
| void | cycle (uint8_t *response) override |
| Periodic cycle callback. | |
| 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. | |
| virtual bool | reset () |
| Reset the module to a known default state. | |
| 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 |
Setup and validate module interfaces.
Populate the module's Interface* array, name interfaces and validate them as needed.
Implements CANTramModule.
|
overridevirtual |
Attach this module to a slot and assign GPIO range.
Attach this module to a slot and assign its GPIO range.
Initializes the module's internal SLOT and GPIO_START and triggers GPIO/resource provisioning and interface registration sequences.
| slot | Slot index to attach the module to. |
| gpioStart | Starting GPIO index assigned to this module. |
Sets the module's SLOT and GPIO_START values, logs the attachment and runs the standard initialization sequence: provideGPIOs, provideHardwareResources, requestGPIOs, requestHardwareResources and addInterfaces. Logs success or warnings based on the combined result.
| slot | Slot index to attach the module to. |
| gpioStart | Starting GPIO index assigned to this module. |
Reimplemented from CANTramModule.

|
overridevirtual |
Periodic cycle callback.
Called regularly by the core to allow the module to perform time-based tasks.
| response | Optional pointer to a response buffer where the module may write response bytes. May be nullptr. |
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.
|
overridevirtual |
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 module after attachment and provisioning.
Perform runtime initialization (start drivers, begin peripherals) once all modules have been attached.
Implements CANTramModule.
|
overridevirtual |
Provide GPIO definitions to the core.
Called during module attachment to allow the module to declare any GPIOs it owns or provides.
Implements CANTramModule.
|
overridevirtual |
Provide hardware resources (e.g., I2C, SPI, UART) to the core.
Called during attachment to attach HardwareResource instances that other modules can request.
Implements CANTramModule.
|
overridevirtual |
Request GPIO definitions from the core.
Called after provideGPIOs to obtain runtime GPIO assignments from CANTramCore.
Implements CANTramModule.

|
overridevirtual |
Request hardware resources from the core.
Called when the module should acquire hardware resources supplied by the system (e.g., UART core).
Implements CANTramModule.