MSGQ_getMsgId
2-246
C Interface
Syntax
msgId = MSGQ_getMsgId(msg);
Parameters
MSGQ_Msg msg;
/* Message */
Return Value
Uint16
msgId;
/* Message ID */
Reentrant
yes
Description
MSGQ_getMsgId returns the message ID from a received message. This
message ID is specified via the MSGQ_setMsgId function.
This function can be called from a HWI, SWI or TSK.
Example
/* Make sure the message is the one expected */
if (MSGQ_getMsgId((MSGQ_Msg)msg) != MESSAGEID) {
SYS_abort("Unexpected message");
}
See Also
MSGQ_getMsgId
Return the message ID from a message