otg.h

来自「使用ISP1362芯片的USB_OTG参考设计源代码比较新的版本」· C头文件 代码 · 共 80 行

H
80
字号
/*
**  WASABI-Hot! version 1.2c    (OTG sub-unit)
**
**
**      -- copyright (c) 2001-2004 by Philips Japan, Ltd. -- All rights reserved --
**
**
**      ** This code has been made to check/learn                          ** 
**      **                             the ISP1362/ISP1363 functionalities **
**      ** Release 06-Aug-2004                                             **
**
**      OKANO, Akifumi
**      
**		Application Laboratory, Mobile and Connectivity
**      Semiconductors Div, Philips Japan Ltd.
**      akifumi.okano@philips.com
**      +81-3-3740-4668 
*/

/****************************************************************************/
/*	includes																*/
/****************************************************************************/

#include		"_hc_core/dev_ep.h"


/****************************************************************************/
/*	constants																*/
/****************************************************************************/

#define			ID_STRING_LENGTH		10


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

extern char				gp_id_string[ ID_STRING_LENGTH + 1 ];
extern unsigned char	gp_full_enumeration_at_non_BR_A_HOST;
extern unsigned char	gp_emulate_peripheral_only;


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

void			OTG_initialize( void );
void			OTG_host_enable_command_from_A_device( unsigned short val );
unsigned char	OTG_bus_request_ON( void );
unsigned char	OTG_bus_request_OFF( void );
void			OTG_bus_drop( void );

void			OTG_exit_from_host_state( void );
void			OTG_exit_from_peripheral_state( void );

unsigned char	OTG_host_operation_enabled( void );
unsigned char	OTG_peripheral_operation_enabled( void );

unsigned char	otg_enable_B_host( void );
void			otg_handle_OTG_descriptor( unsigned char *buf );


void			otg_fn_OTG_isr(void);


void			OTG_bus_request_Toggle( void );
void			OTG_bus_drop_Toggle( void );


void			OTG_show_port_status( void );

unsigned char	otg_wait_to_get_mastership( void );

void			OTG_Dc_start( void );
void			OTG_Dc_bus_reset( void );
void			OTG_Dc_bus_suspend( void );
void			OTG_Dc_bus_resume( void );

device_instance *otg_host_process_for_HNP( void );

⌨️ 快捷键说明

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