usb9603.h

来自「s3c44b0 基于EMBESTED USB 试验」· C头文件 代码 · 共 50 行

H
50
字号
#ifndef __USB9603_H__
#define __USB9603_H__

#ifdef __cplusplus
extern "C"
{
#endif

/* 9603 中断服务程序 */
void Eint1Isr(void);
void __Eint1Isr(void);

/* 初始化 USB 中断 */
void Isr_Init(void);
/* 初始化 9603 USB 设备 */
void Init_9603(void);
/* 接收 */
void rxevent_0(void);
void rxevent_1(void);
void rxevent_2(void);
void rxevent_3(void);
/* 发送 */
void txevent_0(void);
void txevent_1(void);
void txevent_2(void);
void txevent_3(void);

/* 读写 9603 寄存器 */
void write_usb(unsigned char addr,unsigned char dat);
unsigned char read_usb(unsigned char addr);

void bitset(unsigned char addr,unsigned char mask);
void bitclr(unsigned char addr,unsigned char mask);
unsigned char  read_usb(unsigned char addr);
void delay(int time);
void nak0(void);
void usb_alt(void);
void getdescriptor(void);
void setconfiguration(void);
void clrfeature(void);
void get_desc(void);
void getstatus(void);
void setfeature(void);


#ifdef __cplusplus
}
#endif

#endif /* __USB9603_H__ */

⌨️ 快捷键说明

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