serialq.h

来自「此程式庫有許多的zigbee程式源碼」· C头文件 代码 · 共 79 行

H
79
字号
/**************************************************************************** * * MODULE:             serialq.h * * COMPONENT:          $RCSfile: $ * * VERSION:            $Name: $ * * REVISION:           $Revision: $ * * DATED:              $Date: $ * * STATUS:             $State: $ * * AUTHOR:             Ian Morris * * DESCRIPTION * * CHANGE HISTORY: * * $Log: $ * * * LAST MODIFIED BY:   $Author: pc1 $ *                     $Modtime: $ * * **************************************************************************** * *  (c) Copyright 2000 JENNIC Ltd * ****************************************************************************/#ifndef  SERIAL_Q_H_INCLUDED#define  SERIAL_Q_H_INCLUDED#if defined __cplusplusextern "C" {#endif/****************************************************************************//***        Include Files                                                 ***//****************************************************************************/#include <jendefs.h>/****************************************************************************//***        Macro Definitions                                             ***//****************************************************************************//****************************************************************************//***        Type Definitions                                              ***//****************************************************************************/typedef enum {RX_QUEUE = 0, TX_QUEUE } eQueueRef;/****************************************************************************//***        Exported Functions                                            ***//****************************************************************************/PUBLIC void   vSerialQ_Init(void);PUBLIC bool_t bSerialQ_Full(eQueueRef eQueue);PUBLIC bool_t bSerialQ_Empty(eQueueRef eQueue);PUBLIC uint8  u8SerialQ_RemoveItem(eQueueRef eQueue);PUBLIC void   vSerialQ_AddItem(eQueueRef eQueue, uint8 u8Item);/****************************************************************************//***        Exported Variables                                            ***//****************************************************************************/#if defined __cplusplus}#endif#endif  /* SERIAL_Q_H_INCLUDED *//****************************************************************************//***        END OF FILE                                                   ***//****************************************************************************/

⌨️ 快捷键说明

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