C API for BALTECH SDK

§ brp_recv_cmd()

BRP_LIB brp_errcode brp_recv_cmd ( brp_protocol  protocol,
brp_buf  resp_buf,
size_t  max_resp_len,
size_t *  resp_len,
brp_time  timeout 
)

Returns the response of a command runned on the BRP device connected via base_protocol.

Returns
A error code indicating the success of the execution of the command.
Parameters
protocola protocol handle, where the response shall be retrieved from
resp_bufReference to a buffer, where the response is stored.
max_resp_lensize of 'resp_len'. If 0, the response is thrown away
resp_lenactual size of response.
timeoutmaximum time to wait for response. If more time is required BRP_ERR_TIMEOUT