Put a message in a Queue. @param data message pointer. @param millisec timeout value or 0 in case of no time-out. (default: 0) @return status code that indicates the execution status of the function. */
| 45 | @return status code that indicates the execution status of the function. |
| 46 | */ |
| 47 | rt_err_t put(T& data, int32_t millisec = 0) |
| 48 | { |
| 49 | return rt_mq_send(&mID, &data, sizeof(data)); |
| 50 | } |
| 51 | |
| 52 | /** Get a message or Wait for a message from a Queue. |
| 53 | @param millisec timeout value or 0 in case of no time-out. (default: osWaitForever). |
nothing calls this directly
no test coverage detected