at91samxusb.h

来自「基于AT91SAM7S64单片机的USB键盘的实现」· C头文件 代码 · 共 42 行

H
42
字号
/******************************************************************
   本程序只供学习使用,未经作者许可,不得用于其它任何用途

        欢迎访问我的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 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);

#endif

⌨️ 快捷键说明

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