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

📄 usbh_hcds_port.h

📁 epson usb2.0 控制芯片 S1R72V05 固件程序。
💻 H
字号:
/*
 *	description: USBH HCD Port Control Definition
 *	Maker	   : Hiromichi Kondo
 *	Copyright  : (C)2005,SEIKO EPSON Corp. All Rights Reserved.
 */


#ifndef USBH_HCD_PORT_H
#define USBH_HCD_PORT_H

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

#include <usbh_hcds_common.h>
#include <usbh_hcds_72V05.h>


/*****************************************
 * Define definition
 *****************************************/

/* Port State */
#define USBH_HCDS_PORT_ST_UNKNOWN				(0)
#define USBH_HCDS_PORT_ST_POWERED_OFF			(1)
#define USBH_HCDS_PORT_ST_DISCONNECTED			(2)
#define USBH_HCDS_PORT_ST_DISABLED				(3)
#define USBH_HCDS_PORT_ST_RESETTING				(4)
#define USBH_HCDS_PORT_ST_ENABLED				(5)
#define USBH_HCDS_PORT_ST_SUSPENDING			(6)
#define USBH_HCDS_PORT_ST_SUSPENDED				(7)
#define USBH_HCDS_PORT_ST_RESUMING				(8)
#define USBH_HCDS_PORT_ST_VBUS_OVER_CURRENT		(9)
#define USBH_HCDS_PORT_ST_VBUS_OVER_CURRENT_CLR	(10)
#define USBH_HCDS_PORT_RMTWKUP_DISABLE			(0)
#define USBH_HCDS_PORT_RMTWKUP_ENABLE			(1)

#define USBH_HCDS_PORT_TEST_DISABLE				(0)
#define USBH_HCDS_PORT_TEST_ENABLE				(1)

#define USBH_HCDS_PORT_TEST_J					USBH_HCDS_HC_TEST_J
#define USBH_HCDS_PORT_TEST_K					USBH_HCDS_HC_TEST_K
#define USBH_HCDS_PORT_TEST_SE0_NAK				USBH_HCDS_HC_TEST_SE0_NAK
#define USBH_HCDS_PORT_TEST_PACKET				USBH_HCDS_HC_TEST_PACKET
#define USBH_HCDS_PORT_TEST_FORCE_ENABLE		USBH_HCDS_HC_TEST_FORCE_ENABLE

#define USBH_HCDS_PORT_SPEED_MODE_HIGH			(0x00)
#define USBH_HCDS_PORT_SPEED_MODE_FULL			(0x01)
#define USBH_HCDS_PORT_SPEED_MODE_LOW			(0x02)
#define USBH_HCDS_PORT_SPEED_MODE_UNKNOWN		(0xFF)

/*****************************************
 * Function prototype declaration
 *****************************************/
extern void USBH_HCDS_PortRegisterCBR( CALLBACK_PROC pfnCallback);
extern CALLBACK_PROC USBH_HCDS_PortGetCBR( void );
extern void USBH_HCDS_PortInit( void );
extern long USBH_HCDS_PortControl( unsigned char portState );
extern void USBH_HCDS_PortRemoteWakeupControl( unsigned char control );
extern long USBH_HCDS_PortTestMode( unsigned char testMode, unsigned char control );

#ifdef __cplusplus
	}
#endif /* cplusplus */

#endif /* USBH_HCD_PORT_H */

⌨️ 快捷键说明

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