⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 txc_os_sem.h

📁 TranSwitch Envoy CE2 & Envoy CE4 设备驱动及编程指南
💻 H
字号:
/*--------------------------------------------------------------------------

  *******                           ****
     *     *****     **    *    *  *       *    *   *  *****   ****   *    *
     *     *    *   *  *   **   *  *       *    *   *    *    *    *  *    *
     *     *    *  *    *  * *  *   ****   *    *   *    *    *       ******
     *     *****   ******  *  * *       *  * ** *   *    *    *       *    *
     *     *   *   *    *  *   **  *    *  **  **   *    *    *    *  *    *
     *     *    *  *    *  *    *   ****   *    *   *    *     ****   *    *

                        Proprietary and Confidential 

    This program is made available only to customers and prospective customers 
of TranSwitch Corporation under license and may be used only with TranSwitch 
semi-conductor products.

                      Copyright(c) 2004 TranSwitch Inc.
|-----------------------------------------------------------------------|
|																		|
|                      ********        ******							|
|                     **      **      **    **							|
|                     **      **       **    *							|
|                     **      **        **								|
|                     **      **         **								|
|                     **      **          **							|
|                     **      **       *   ***							|
|                     **      **      **    **							|
|		               ********        ******							|
|																		|
|-----------------------------------------------------------------------|
|						Semaphore Header File							|
|-----------------------------------------------------------------------|
|																		|
|  Workfile:  txc_os_sem.h												|
|																		|
|  Description:	this file contains OS semaphore defines                 |
|																		|
-------------------------------------------------------------------------
                           Revision History
-------------------------------------------------------------------------
Rev #	Date		Author			Description
-----	------		-------			-----------
1.0		06-Feb-01	R.Ruchandani	Initial Revision.

-----------------------------------------------------------------------*/
#ifndef TXC_OS_SEM_H
#define TXC_OS_SEM_H

/***********************************************************************
 **                            Defines                                **
 ***********************************************************************/

#define TXC_OS_SEM_WAIT_NEVER    0
#define TXC_OS_SEM_WAIT_FOREVER  0xFFFFFFFF


/***********************************************************************
 **                          Structures                               **
 ***********************************************************************/


 /***********************************************************************
 **                       Exported Variables                          **
 ***********************************************************************/


 /***********************************************************************
 **                       Function Prototypes                         **
 ***********************************************************************/

TXC_U16BIT TXC_SemOpen (const char * name, TXC_SEM_ID * semIdPtr);
TXC_U16BIT TXC_SemWait(TXC_SEM_ID semId, TXC_U32BIT milliSeconds);
TXC_U16BIT TXC_SemPost(TXC_SEM_ID semId);
TXC_U16BIT TXC_SemDelete (TXC_SEM_ID semId);


#endif /*TXC_OS_SEM_H */

⌨️ 快捷键说明

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