mailbox.h

来自「IT projecotr reference design.」· C头文件 代码 · 共 40 行

H
40
字号
/****************************************************************************/
/*             TEXAS INSTRUMENTS PROPRIETARY INFORMATION                    */
/*                                                                          */
/*  (c) Copyright, Texas Instruments Incorporated, 2006.                    */
/*      All Rights Reserved.                                                */
/*                                                                          */
/*  Property of Texas Instruments Incorporated. Restricted Rights -         */
/*  Use, duplication, or disclosure is subject to restrictions set          */
/*  forth in TI's program license agreement and associated documentation.   */
/****************************************************************************/

/****************************************************************************/
/* mailbox.h                                                                */
/*                                                                          */
/* Application mailbox interface.                                           */
/****************************************************************************/

#ifndef __MAILBOX_H
#define __MAILBOX_H

#include "common.h"


typedef enum
{
    MBM_FAIL,                                    /* general message failure */
    MBM_PASS,                                       /* successful operation */
    MBM_EVENT,                             /* failed to allocate RTOS event */
    MBM_SEND,                       /* RTOS failure in sending RTOS message */
    MBM_RECV,                     /* RTOS failure in receiving RTOS message */
    MBM_NOMSG,                               /* timeout waiting for message */
    MBM_NORESP                              /* timeout waiting for response */
}
  MBM_CC;
    
MBM_CC mbRecv( uint32 mbxID, int32 blocktime, void (*mbCallback)( uint16 msgID, uint32 parm, uint32 parm2 ));
MBM_CC mbSend( uint32 mbxID, uint16 msgID, int32 blocktime, uint32 parm, BOOL dispose, uint32 parm2 );

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?