usbd_sampletaskapi.h

来自「epson usb2.0 控制芯片 S1R72V05 固件程序。」· C头文件 代码 · 共 62 行

H
62
字号
/*
 *	description	: DeviceSample Task APIs
 *	Maker		: Shuichi.Yanagihara
 *	Copyright	: (C)2005,SEIKO EPSON Corp. All Rights Reserved.
 */

#ifndef USBD_SAMPLE_API_H
#define USBD_SAMPLE_API_H

#ifdef __cplusplus
	extern "C" {
#endif /* cplusplus */


//==========================================================================//
//																			//
//						  Define Declaration							 //
//																			//
//==========================================================================//

//----------------------------------------------------------------------------
// DeviceSample_Active() CallBack type
//----------------------------------------------------------------------------
typedef void (*USBD_SAMPLE_PFN_CALLBACK_PROC) ( unsigned long message, unsigned long param0, void* pParam );

//----------------------------------------------------------------------------
// DeviceSample Task state
//----------------------------------------------------------------------------
#define USBD_SAMPLE_STATE_NON_EXISTENT		(0x01)		// Unregistered state
#define USBD_SAMPLE_STATE_STOP				(0x02)		// Stop state
#define USBD_SAMPLE_STATE_ACTIVE			(0x03)		// Operation state

//----------------------------------------------------------------------------
// CallBack Message
//----------------------------------------------------------------------------


//==========================================================================//
//																			//
//							 Structure Declaration						 //
//																			//
//==========================================================================//


//==========================================================================//
//																			//
//					   DeviceSample Applicasion Interface					  //
//																			//
//==========================================================================//

extern long USBD_Sample_Create ( void );
extern long USBD_Sample_Delete ( void );
extern long USBD_Sample_Active ( USBD_SAMPLE_PFN_CALLBACK_PROC pfnCallbackProc );
extern long USBD_Sample_Inactive ( void );

#ifdef __cplusplus
	}
#endif /* cplusplus */

#endif /* USBD_SAMPLE_API_H */

⌨️ 快捷键说明

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