Extension Modules
Overview
This module is used to address the connected external extension modules.
Functions
- extMod.init(verbose: bool = False) int
Initializes the communication to the connected modules.
- Parameters:
(optional) (verbose) – If you set this parameter to true you will see all information about the connected modules in the log.
- Returns:
The number of connected modules. You can use this value to check if all for your test neccesary modules are available.
- Return type:
int
Example usage:
from testframework import * numberOfModules = ext.init() report.checkValue("Number of extension modules", numberOfModules, 2)
- extMod.getRS485(index: int = 0) ClassRS485
- extMod.getPowerIO(index: int = 0) ClassPowerIO