OS_Msg_Send_Now (msg_cb, message)
OS_Msg_Send_I (msg_cb, message)
Send message through msg_cb. If msg_cb already exists then it will be overwritten.
msg_cb |
Pointer to message descriptor. Variable of OST_MSG_CB type |
message |
pointer to message body (OST_MSG) |
bEventError |
If msg_cb is not free then OS_IsEventError will return true |
OST_MSG_CB msg_cb; void Task (void) { OST_MSG msg; static char buf[5]; for (;;) { /*...*/ OS_Msg_Send_Now (msg_cb, buf); /*...*/ } }
OS_SendMsgNoWait