C API for BALTECH SDK

§ brp_MsgQueue_SendReceive()

brp_errcode brp_MsgQueue_SendReceive ( brp_protocol  protocol,
brp_buf  SendMsg,
size_t  SendMsg_len,
unsigned  Timeout,
brp_buf RecvMsg,
size_t *  RecvMsg_len,
brp_mempool mempool 
)

This command combines Send and Receive to a single command.

It sends a message and then waits for the reception of a new message.

Parameters
[in]protocolused to execute the command
[in]SendMsgMessage to send.
[in]SendMsg_len
[in]TimeoutMax. time (in ms) to wait for reception of a response message.
[out]RecvMsgReceived message.
[out]RecvMsg_len
[in]mempoolis used to store response data. Maybe NULL to use an internal mempool, in this case the data is only available until another command uses the internal mempool