#include <CFNetController.h>
|
uint32_t | getServerVersion () |
| Returns server (winIDEA) version of isystem.connect interface. More...
|
|
std::string | getLastError () |
| This function returns error description, after isystem.connect call fails. More...
|
|
CLogger * | log () |
| Returns logger, which can be used for logging.
|
|
bool | isLog () |
| Returns true, if logging is active.
|
|
◆ applyOperation()
void isys::CFNetController::applyOperation |
( |
| ) |
|
Performs the sequence of: stop, reapply operation configuration, restart FNet operation.
Raises exception if FNet operation fails.
◆ createAInController()
Returns new instance of CFNetAInController.
- Parameters
-
identifier | unique network identifier string (example: "ADIO.AIN1") |
◆ createAOutController()
Returns new instance of CFNetAOutController.
- Parameters
-
identifier | unique network identifier string (example: "ADIO.AOUT1") |
◆ createCANController()
Returns new instance of CFNetCANController.
- Parameters
-
identifier | unique network identifier string (example: "CAN2LIN2.CAN1") |
◆ createCounterController()
Returns new instance of CFNetCounterController.
- Parameters
-
identifier | unique network identifier string (example: "Root.COUNTER1") |
◆ createDIOController()
Returns new instance of CFNetDIOController.
- Parameters
-
identifier | unique network identifier string (example: "ADIO.DIO") |
◆ createLINController()
Returns new instance of CFNetLINController.
- Parameters
-
identifier | unique network identifier string (example: "CAN2LIN2.LIN1") |
◆ createPowerSenseController()
Returns new instance of CFNetPowerSenseController.
- Parameters
-
identifier | unique network identifier string (example: "ADIO.AIN1") |
◆ createSPIController()
Returns new instance of CFNetSPIController.
- Parameters
-
identifier | unique network identifier string (example: "ADIO.SPI1") |
◆ getLastError()
std::string isys::WrapperBase::getLastError |
( |
| ) |
|
|
protectedinherited |
This function returns error description, after isystem.connect call fails.
The description is the same, as it would be shown in a winIDEA's message dialog. If there is no error message available, an empty string is returned.
◆ getListOfConnectedNodes()
void isys::CFNetController::getListOfConnectedNodes |
( |
std::vector< std::string > & |
nodes | ) |
|
Fills list with available FNet nodes.
- Parameters
-
nodes | connected nodes list |
◆ getNodeAttributes()
std::string isys::CFNetController::getNodeAttributes |
( |
const std::string & |
nodeName, |
|
|
bool |
raiseException = false |
|
) |
| |
Returns string of node attributes.
- Parameters
-
nodeName | node name as specified in winIDEA GUI |
raiseException | if true, exception is raised if node can't be found, otherwise not |
- Returns
- string of node attributes
◆ getServerVersion()
uint32_t isys::WrapperBase::getServerVersion |
( |
| ) |
|
|
protectedinherited |
Returns server (winIDEA) version of isystem.connect interface.
Attach must be done before this method returns valid result. Value of iConnect::EVersion::verCurrent in winIDEA is returned.
◆ getTriggerIndex()
int16_t isys::CFNetController::getTriggerIndex |
( |
const std::string & |
triggerName | ) |
|
Returns trigger index.
- Parameters
-
triggerName | name like in winIDEA GUI window. For example: "TC5", "None", "RunSync" |
- Returns
- index number, if no index can be found for the given name, then -1 is returned.
◆ injectTrigger()
void isys::CFNetController::injectTrigger |
( |
const uint8_t |
triggerIndex | ) |
|
Manually generate (inject) selected trigger.
- Parameters
-
triggerIndex | index in range from 0 to 10 |
◆ restartOperation()
void isys::CFNetController::restartOperation |
( |
| ) |
|
Apply FNet configurations and restart internal state of all available nodes, without breaking communication with debugger.
Raises exception if FNet operation fails.
◆ stopOperation()
void isys::CFNetController::stopOperation |
( |
| ) |
|
Stop FNet operation on all available nodes.
Raises exception if FNet operation fails.