====== OSA : OS_Msg_Send_I ====== **OS_Msg_Send_I (msg_cb, message)**\\ **OS_Msg_Send_I (msg_cb, message)**\\ === === {{osa:ref:attr_call_int.png|Only insize interrupt}} Send message through //msg_cb// from interrupt routine. If //msg_cb// already exists then it will be overwritten. ##[[en:osa:ref:appendix:configuration|OS_ENABLE_INT_MSG]]## constant must be defined in ##[[en:osa:ref:appendix:configuration|OSAcfg.h]]## === Call allowed: === Only in interrupt === Parameters: === {| class = "fpl" |- |//''msg_cb''// |Pointer to message descriptor. Variable of ##[[en:osa:ref:description:data_types#OST_MSG_CB|OST_MSG_CB]]## type |- |//''message''// |pointer to message body (##[[en:osa:ref:description:data_types#OST_MSG|OST_MSG]]##) |} === Returns: === {| class = "fpl" |- |//''bEventError''// |If //msg_cb// is not free then ##[[en:osa:ref:allservices:OS_IsEventError|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_Create|OS_Msg_Create]] * [[en:osa:ref:allservices:OS_Msg_Send|OS_Msg_Send]] * [[en:osa:ref:allservices:OS_Msg_Send_TO|OS_Msg_Send_TO]] * [[en:osa:ref:allservices:OS_Msg_Send_Now|OS_Msg_Send_Now]] * [[en:osa:ref:allservices:OS_Msg_Check|OS_Msg_Check]] * [[en:osa:ref:allservices:OS_Msg_Accept|OS_Msg_Accept]] * [[en:osa:ref:allservices:OS_Msg_Wait|OS_Msg_Wait]] * [[en:osa:ref:allservices:OS_Msg_Wait_TO|OS_Msg_Wait_TO]] ---- * [[en:osa:ref:services:alphabetical|Alphabetical]] * [[en:osa:ref:services:brieflist|All services]] ~~UP~~