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