📄 msapi_msdctrl.c
字号:
/**************************************************************************************************
<< MStar Mass storage Device control api >>
**************************************************************************************************/
#include "datatype.h"
#include "debug.h"
#include "sysinfo.h"
#include "drvmiu.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "msAPI_MSDCtrl.h"
#include "Drvsys.h"
U8 u8DeviceSelect; //0:Card reader,1:USB mass storage
U8 u8LUNSelect; //0:Card reader,1:USB mass storage
U8 msAPI_MassStorage_DeviceSelect(U8 u8SelectNO)
{
u8DeviceSelect=u8SelectNO;
return TRUE;
}
U8 msAPI_MassStorage_CardDetect(void)
{
return FALSE;
}
U8 msAPI_MassStorage_USBDetect(void)
{
return FALSE;
}
U8 msAPI_MassStorage_USBGetMaxLun(void)
{
return FALSE;
}
U8 msAPI_MassStorage_USBGetValidLun(void)
{
return FALSE;
}
U8 msAPI_MassStorage_USBLunSelect(U8 Lun)
{
Lun=Lun;
return FALSE;
}
U8 msAPI_MassStorage_Initial(void *CardPtr)
{
if(u8DeviceSelect)
{
return FALSE;
}
else
{
return FALSE;
}
CardPtr=CardPtr;
}
U8 msAPI_MassStorage_Read(void *CardPtr, U32 u32StartSector, U32 u32SectorCount, U32 u32BufferAddress)
{
if(u8DeviceSelect)
{
return FALSE;
}
else
{
return FALSE;
}
CardPtr = CardPtr;
u32StartSector = u32StartSector;
u32SectorCount = u32SectorCount;
u32BufferAddress = u32BufferAddress;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -