![]() |
BALTECH Docs |
C API for BALTECH SDK
|
| 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.
| [in] | protocol | used to execute the command |
| [in] | SendMsg | Message to send. |
| [in] | SendMsg_len | |
| [in] | Timeout | Max. time (in ms) to wait for reception of a response message. |
| [out] | RecvMsg | Received message. |
| [out] | RecvMsg_len | |
| [in] | mempool | is 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 |