C API for BALTECH SDK

§ brp_DHWCtrl_PortWait()

brp_errcode brp_DHWCtrl_PortWait ( brp_protocol  protocol,
unsigned  Port,
bool  Level,
unsigned  Timeout,
unsigned *  ReactionTime 
)

Waits until a port has reached the specified level, or until timeout.

Parameters
[in]protocolused to execute the command
[in]PortPort to monitor.
[in]LevelLevel which must be reached by Port.
[in]TimeoutTimeout value in milliseconds. 0xFFFF means no timeout.
[out]ReactionTimeThe time in milliseconds until Port reached desired Level value. 0xFFFF is returned when the timeout value is reached. 0xFFFE is otherwise the maximum value.