irda_api.h

来自「红外口驱动原代码,用于手机产品的开发等,」· C头文件 代码 · 共 107 行

H
107
字号
///////////////////////////////////////////////////////////////////////////////
//
//   ROCKWELL SEMICONDUCTOR SYSTEMS - WIRELESS COMMUNICATIONS DIVISION
//
///////////////////////////////////////////////////////////////////////////////
//
//
//   irdaapi.h - irda user interface
//
//
//   DESCRIPTION
//
//   This files contains the structure used for the definition of the irda 
//   api interface.
//
//
//   REVISION HISTORY (ORIGINAL AUTHOR: Ali Aiouaz)
//
//      Rev 1.0   29 Mar 2003 luw
//   Intial CheckIn
//
//
///////////////////////////////////////////////////////////////////////////////
//
//   ROCKWELL CONFIDENTIAL AND PROPRIETARY
//
//   This source is the sole property of Rockwell International.  Reproduction
//   or utilization of this source in whole or in part is forbidden without
//   the written consent of Rockwell International.
//
//   (c) Copyright Rockwell International, 1997.  All Rights Reserved.
//
///////////////////////////////////////////////////////////////////////////////


// ----------------------- Constant / Macro Definitons ------------------------

#ifndef IRDA_API_H
#define IRDA_API_H

#include "wcdctypes.h"
#include "idevapi.h"


// ---------------------------- Type Declarations -----------------------------


// -------------------------- Variable Declarations ---------------------------


// --------------------------- Function Prototypes ----------------------------

//***************************************************************************
//
// Name: SDSOpenIrDA()
//
// Description: This function switch SDS to IrDA mode, must be calledc after 
//				SDSOpen.
//
// Parameters: - The Device Number 
//             - Device Read/Write Mode
//             - SDS open parameters
// 
// Return value: the status of SDS-IRDA
//
// Related Callback Events: None
//
//***************************************************************************

extern DEVSTATUS SDSOpenIrDA (USHORT DevNumber, DEVRWMODE Mode, VOID *pParams);


//***************************************************************************
//
// Name: SDSSetIrDABaudRate()
//
// Description: This function change IrDA Baudrate.
//
// Parameters: - The Device Handle 
//             - Device Baudrate
// 
// Return value: the status of SDS-IRDA
//
// Related Callback Events: None
//
//***************************************************************************
extern DEVSTATUS SDSSetIrDABaudRate(DEVHANDLE DevHandle, ULONG BaudRate);

//***************************************************************************
//
// Name: SDSCloseIrDA()
//
// Description: This function close SDS IrDA mode.
//
// Parameters: - The Device Number 
// 
// Return value: the status of SDS-IRDA
//
// Related Callback Events: None
//
//***************************************************************************
extern DEVSTATUS SDSCloseIrDA(USHORT DevNumber);


#endif /* IRDA_API_H */

⌨️ 快捷键说明

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