![]() |
BALTECH Docs |
C API for BALTECH SDK
|
| 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.
| protocol | a protocol handle, where the response shall be retrieved from |
| resp_buf | Reference to a buffer, where the response is stored. |
| max_resp_len | size of 'resp_len'. If 0, the response is thrown away |
| resp_len | actual size of response. |
| timeout | maximum time to wait for response. If more time is required BRP_ERR_TIMEOUT |