====== OSA : OS_Smsg_Send_I ====== **OS_Smsg_Send_I (smsg, smessage)**\\ **OS_Smsg_Send_I (smsg, smessage)**\\ === === {{osa:ref:attr_call_int.png|Only insize interrupt}} Send message //msg_cb// from interrupt routine. If //msg_cb// already exists then it will be overwritten. ##[[en:osa:ref:appendix:configuration|OS_ENABLE_INT_SMSG]]## constant must be defined in ##[[en:osa:ref:appendix:configuration|OSAcfg.h]]## === Call allowed: === Only in interrupt === Parameters: === {| class = "fpl" |- |//''smsg''// |Simple message descriptor. Variable of ##[[en:osa:ref:description:data_types#OST_SMSG|OST_SMSG]]## type |- |//''smessage''// |Message body (##[[en:osa:ref:description:data_types#OST_SMSG|OST_SMSG]]##) |} === Returns: === {| class = "fpl" |- |//''bEventError''// |If //smsg// is not free then ##[[en:osa:ref:allservices:OS_IsEventError|OS_IsEventError]]## will return **true** |} === Example: === OST_SMSG smsg; void interrupt isr(void) { OS_EnterInt(); /*...*/ OS_Smsg_Send_I (smsg, smessage); /*...*/ OS_LeaveInt(); } void Task (void) { for (;;) { /*...*/ /*...*/ } } === Old style name === **OS_IntSendSMsgNoWait**\\ === See also === * [[en:osa:ref:allservices:OS_Smsg_Create|OS_Smsg_Create]] * [[en:osa:ref:allservices:OS_Smsg_Send|OS_Smsg_Send]] * [[en:osa:ref:allservices:OS_Smsg_Send_TO|OS_Smsg_Send_TO]] * [[en:osa:ref:allservices:OS_Smsg_Send_Now|OS_Smsg_Send_Now]] * [[en:osa:ref:allservices:OS_Smsg_Check|OS_Smsg_Check]] * [[en:osa:ref:allservices:OS_Smsg_Accept|OS_Smsg_Accept]] * [[en:osa:ref:allservices:OS_Smsg_Wait|OS_Smsg_Wait]] * [[en:osa:ref:allservices:OS_Smsg_Wait_TO|OS_Smsg_Wait_TO]] ---- * [[en:osa:ref:services:alphabetical|Alphabetical]] * [[en:osa:ref:services:brieflist|All services]] ~~UP~~