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

📄 port_ctl.h

📁 基于ARM的读U盘
💻 H
字号:
/****************************************************************************/
/*	includes																*/
/****************************************************************************/
#include		"..\_hc_core\dev_ep.h"
#include		"..\_hc_core\transfer.h"

#include		"..\class_dr\hub\hub.h"

/****************************************************************************/
/*	constants																*/
/****************************************************************************/
#define		NUMBER_OF_ROOT_HUB_PORT		2

#define		ROOT_HUB_ADDRESS		1

#define 	ROOT_HUB_EVENT			0x80
#define 	DEVICE_HUB_EVENT			0x40

#define 	HUB_EVENT					(DEVICE_HUB_EVENT|ROOT_HUB_EVENT)

/****************************************************************************/
/*	global vars																*/
/****************************************************************************/

extern hub_instance				g_root_hub_instance;

extern unsigned char			g_fast_enumeration;
extern unsigned char			g_silent_enumeration;
extern unsigned short HcRhPortStatusComm[2]	;

/****************************************************************************/
/*	function prototypes														*/
/****************************************************************************/

void				isr_flag_routine_dspatch( void );
void				rh_event_start( void );
device_instance		*device_on_port( unsigned char port_num );
void disconnect_a_device( device_instance **dvi_ptr_ptr );
unsigned long read_hub_port_status( unsigned char address, unsigned char port );
void root_hub_event( void );


void hub_handler( void );

⌨️ 快捷键说明

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