halusbhif.h
来自「威望公司MP3 + USB MCU 的参考软件」· C头文件 代码 · 共 43 行
H
43 行
/****************************************************************
* Viaon Technology (Suzhou) Co.,Ltd
*
* Copyright 2007, Viaon Technology (Suzhou) Co.,Ltd,Suzhou,China
* All rights reserved.
*
*
* Filename: halusbif.h
*
* Programmer: Greg
*
* Created: 1/2/2008
*
* Description: public functions
*
*
* Change History (most recent first): 2008.1.2
****************************************************************/
#ifndef __HALUSBHIF_H__
#define __HALUSBHIF_H__
#include "utiltypedef.h"
#include "halusbhost.h"
#include "halscsi.h"
//It's better for us to check the device attachment with GPIO
BYTE halUsbChkReg(void); //Check Register only without USB BUS reset
BYTE halUsbCheck(void); //Check usb device attachment with usb bus reset
BYTE halUsbInit(void);
BYTE halUsbEnum(void);
//This function will return the exponent of the size of sector.
//Can be called after Enumeration.
BYTE halUsbInfo(void);
#define halUsbRead(lba, pBuffer, offset) RBC_ReadOneSec(lba, pBuffer, RBC_READ_BUF, offset)
#define halUsbReadMp3(lba, offset) RBC_ReadOneSec(lba, NULL, RBC_READ_MP3, offset)
#define halUsbFlush(bSkip) RBC_ReadFlush(bSkip)
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?