osaStatus_t HostInterface_RxQueueMsgPut(hostInterface_packet_t * pHostInterface_packet) { osa_status_t status; status = OSA_MsgQPut(hostInterface_rxQueueHnd, (hostInterface_packet_t *)pHostInterface_packet); if(status == kStatus_OSA_Error) { panic(0,0,0,0); } return (osaStatus_t) status; }
osa_status_t HostInterface_RxQueueMsgPut( hostInterface_packet_t* pHostInterface_packet ) { osa_status_t status = OSA_MsgQPut(hostInterface_rxQueueHnd, (hostInterface_packet_t *)pHostInterface_packet); if ( kStatus_OSA_Error == status ) { catch(2); } return (osa_status_t)status; }
/** * This function puts a message to the end of the Tx message queue. * * @param pHostInterface_packet Packet that will be placed into Tx message queue. * * @return kStatus_OSA_Success Message successfully put into the queue. * kStatus_OSA_Error Process fail. */ osa_status_t HostInterface_TxQueueMsgPut( hostInterface_packet_t* pHostInterface_packet ) { osa_status_t status = kStatus_OSA_Success; while (1) { status = OSA_MsgQPut(hostInterface_txQueueHnd, (hostInterface_packet_t*)pHostInterface_packet); if ( kStatus_OSA_Success == status ) { break; } else { catch(2); } } return (osa_status_t)status; }
uint32_t OS_MsgQ_send(os_msgq_handle msgq, void* msg, uint32_t flag) { return ((kStatus_OSA_Success == OSA_MsgQPut((msg_queue_handler_t)(msgq), msg )) ? OS_MSGQ_OK : OS_MSGQ_ERROR); }