86
9.6 Setting the Logical Output Port
The level of a logical output port is set. The "level" parameter indicates whether the output is set to high or low. This function
can only be applied to outputs that have been configured for logic mode. If the port is used as a trigger output, the function
generates an error message.
Function
EIB7_ERR EIB7WriteIO ( EIB7_IO io,
unsigned long level
)
Parameters
io IO handle
level Logical level of the output
Level Description
0 low level
1 high level
Return code
The return code delivers a status for the function call. In addition to the standard return codes, the following error messages
can occur.
EIB7_ParamInvalid Parameter invalid
EIB7_TrgNotConf Output is not a logical port
9.7 Reading the Configuration Data for an Input
The configuration data for an input port is read. The "mode" parameter supplies the operating mode of the input. In
"termination," the status of the terminating resistor is returned. The function may only be used for input ports.
Function
EIB7_ERR EIB7GetInputConfig ( EIB7_IO io,
EIB7_IOMODE* mode,
EIB7_MODE* termination
)
Parameters
io IO handle
mode [return code] Pointer to the variable for the operating mode
mode Description
EIB7_IOM_Trigger Trigger input
EIB7_IOM_Logical Logical input
termination [return code] Pointer to the variable for the terminating resistor
Termination Description
EIB7_MD_Disable Terminating resistor deactivated
EIB7_MD_Enable Terminating resistor activated
Return code
The return code delivers a status for the function call. In addition to the standard return codes, the following error messages
can occur.
EIB7_ParamInvalid Parameter invalid