C API for BALTECH SDK

§ brp_Sys_GetPort()

brp_errcode brp_Sys_GetPort ( brp_protocol  protocol,
brp_IoPortBitmask PortMask 
)

This command retrieves the voltage for the custom I/O ports of the module.

Every module can have up to 16 ports whereby every bit of the returned PortMask value corresponds to a port. A '1' corresponds to 5V, while a '0' corresponds to 0V.

Parameters
[in]protocolused to execute the command
[out]PortMask