Extensions.ComInterface.ActivateEthernet
Jump to navigation
Jump to search
Classification
Name | ActivateEthernet |
Short Description | Activates the ethernet communication on the selected interface. |
Class | Action |
Extension | OTX ComInterface extension |
Group | ComInterface related Actions |
Exceptions | ActivateEthernetException |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
ActionRealisation ComInterface.ActivateEthernet(ComInterfaceVariable comInterface);
Description
This action activates the ethernet communication on the selected interface.
The appropriate MVCI system operation is MCDInterface::execIOCtrl(PDU_IOCTL_SET_ETH_SWITCH_STATE).
Properties
Name | Data Type | Class | Default | Cardinality | Description |
comInterface | ComInterface | Variable | - | [1..1] | Represents the handle of the communication interface on which the Ethernet will be activated. |
OTL Examples
/// Local Declarations
ComInterface.ComInterface ComInterface1;
Exception Exception1;
/// Flow
ComInterface.ConnectComInterface(ComInterface1);
try
{
ComInterface.ActivateEthernet(ComInterface1);
}
catch (ComInterface.ActivateEthernetException Exception1)
{
}