usbh_sampletaskapi.h

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

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

#ifndef USBH_SAMPLE_API_H
#define USBH_SAMPLE_API_H

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


//==========================================================================//
//                                                                          //
//                         Define declaration								//
//                                                                          //
//==========================================================================//

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

//----------------------------------------------------------------------------
// HostSample Task state
//----------------------------------------------------------------------------
#define USBH_SAMPLE_STATE_NON_EXISTENT		(0x01)		// Unregistered state
#define USBH_SAMPLE_STATE_STOP				(0x02)		// Stop state
#define USBH_SAMPLE_STATE_ACTIVE			(0x03)		// Active state

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


//==========================================================================//
//                                                                          //
// 							Structure definition						//
//                                                                          //
//==========================================================================//


//==========================================================================//
//                                                                          //
//                     HostSample Applicasion Interface                     //
//                                                                          //
//==========================================================================//

extern long USBH_Sample_Create ( void );
extern long USBH_Sample_Delete ( void );
extern long USBH_Sample_Active ( USBH_SAMPLE_PFN_CALLBACK_PROC pfnCallbackProc );
extern long USBH_Sample_Inactive ( void );

#ifdef __cplusplus
	}
#endif /* cplusplus */

#endif /* USBH_HOST_SAMPLE_API_H */

⌨️ 快捷键说明

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