📄 at91samxusb.h
字号:
/******************************************************************
本程序只供学习使用,未经作者许可,不得用于其它任何用途
欢迎访问我的USB专区:http://group.ednchina.com/93/
欢迎访问我的blog: http://www.ednchina.com/blog/computer00
http://computer00.21ic.org
AT91SAMxUSB.H file
作者:电脑圈圈
建立日期: 2008.06.27
修改日期: 2009.03.08
版本:V1.1
版权所有,盗版必究。
Copyright(C) 电脑圈圈 2008-2018
All rights reserved
*******************************************************************/
#ifndef __AT91SAMXUSB_H__
#define __AT91SAMXUSB_H__
#include "MyType.h"
void DelayXms(unsigned long int x);
//函数声明
void UsbDisconnect(void); //USB断开连接
void UsbConnect(void); //USB连接
void UsbChipInit(void);
void UsbChipResetEndpoint(void);
void UsbChipSetConfig(uint8 Value);
void UsbChipWriteAddress(uint8 Addr);
void UsbChipSetAddressStatus(uint8 Value);
int UsbChipIsSetup(uint8 Endp);
uint8 UsbChipReadEndpointBuffer(uint8 Endp, uint8 Len, uint8 *Buf);
uint8 UsbChipWriteEndpointBuffer(uint8 Endp, uint8 Len, uint8 *Buf);
void UsbChipClearBuffer(uint8 Endp);
void UsbChipAcknowledgeSetup(uint8 Endp);
void UsbChipSetAddress(uint8 Addr);
void UsbChipSetEndpointEnable(uint8 Enable);
void SetCsr(int endpoint, unsigned int flags);
void ClrCsr(int endpoint, unsigned int flags);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -