Available Languages?:

OSA : OS_Msg_Send_I

OS_Msg_Send_I (msg_cb, message)
OS_Msg_Send_I (msg_cb, message)

Only insize interrupt

Send message through msg_cb from interrupt routine. If msg_cb already exists then it will be overwritten.

OS_ENABLE_INT_MSG constant must be defined in OSAcfg.h

Call allowed:

Only in interrupt

Parameters:

msg_cb Pointer to message descriptor. Variable of OST_MSG_CB type
message pointer to message body (OST_MSG)

Returns:

bEventError If msg_cb is not free then OS_IsEventError will return true

Example:

OST_MSG_CB msg_cb;
 
void interrupt isr(void)
{
    OS_EnterInt();
    /*...*/
    OS_Msg_Send_I (msg_cb, (OST_MSG*)&PORTB);
    /*...*/
    OS_LeaveInt();
}

Old style name

OS_IntSendMsgNoWait

See also

 
en/osa/ref/allservices/os_msg_send_i.txt · Last modified: 07.10.2010 13:57 (external edit)
 
Creative Commons License Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki