📄 usb9603.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -