The application class provides access to all modules.
More...
#include <Imt.Base.BSP/Application.h>
The application class provides access to all modules.
◆ clear()
static void imt::base::bsp::Application::clear |
( |
void |
| ) |
|
|
static |
Clear the application.
This will delete all the module and driver instances.
◆ getDriver()
template<typename DRIVER >
static DRIVER* imt::base::bsp::Application::getDriver |
( |
const size_t |
indexModule, |
|
|
const size_t |
indexDriver |
|
) |
| |
|
inlinestatic |
Gets the driver with the given index.
- Parameters
-
indexModule | The index of the module, starting at 0 for the first one. |
indexDriver | The index of the driver, starting at 0 for the first one. |
- Returns
- The driver or a null pointer of not supported for this BSP.
◆ getModule()
template<typename MODULE >
Gets the module with the given index.
- Parameters
-
type | The type of driver. |
indexModule | The index of the module, starting at 0 for the first one. |
- Returns
- The module or a null pointer of not supported for this BSP.
◆ getModulesTcpClient()
Gets the number of avaliable modules of a certain type.
(Note: Implementation only applicable for simulation BSP, other BSPs to always return NULL.)
- Parameters
-
type | The type of drivers the module provides. |
indexModule | The index of the module to return, starting at 0 for the first one. |
indexDriver | The index of the driver to return, starting at 0 for the first one. |
- Returns
- Non-null void type pointer (if valid), else null (or, not supported).
◆ getNumberOfDrivers()
Gets the number of avaliable drivers in a certain module.
- Parameters
-
type | The type of driver. |
indexModule | The index of the module, starting at 0 for the first one. |
- Returns
- The number of drivers.
◆ getNumberOfModules()
Gets the number of avaliable modules of a certain type.
- Parameters
-
- Returns
- The number of modules.
◆ initialize()
static void imt::base::bsp::Application::initialize |
( |
void |
| ) |
|
|
static |
Initialize the application.
This will setup clocks, pin configuration and init all avaliable peripherals.
◆ run()
Enables all peripheral interrupts and runs the given application.
This method will never return.
- Parameters
-
app | The application top level container. |
The documentation for this class was generated from the following file: