?? fcu_mspro.h
字號:
/**
%file Fcu_mspro.h
%desc
Header file for MS-PRO FCU driver.
*/
#ifndef __FCUMSPRO_H
#define __FCUMSPRO_H
#include "Config.h" // Global Configuration - do not remove!
#ifdef INTERNAL_MEM_CARD_READER
////////////////////////////////////////////////////////////////////////////////
// General information.
////////////////////////////////////////////////////////////////////////////////
#define FCU_MSPRO_BYTES_PER_SECTOR 512
#define FCU_MSPRO_BYTES_PER_SECTOR_BITS 9
#define FCU_MSPRO_ID_SIZE 512
#define FCU_MSPRO_MAX_SECTORS_IN_BURST 256
#define FCU_MSPRO_PARALLEL_CLOCK_COUNT_VAL 3
////////////////////////////////////////////////////////////////////////////////
// FCU command & values.
////////////////////////////////////////////////////////////////////////////////
typedef struct tagSFCUMSPROCOMMAND
{
BYTE byStatus;
BYTE byLocation;
BYTE byReserved1;
BYTE bySectors;
ULONG ulFlashAddr;
BYTE byOpType;
BYTE byOpCode;
BYTE byClockCountVal;
BYTE byMmuReq;
BYTE byParallelMode;
BYTE bySectorsMsb;
USHORT usReserved2;
} SFCUMSPROCOMMAND, *PSFCUMSPROCOMMAND;
// Operation types.
#define FCU_MSPRO_OP_TYPE_READ 0x00
#define FCU_MSPRO_OP_TYPE_WRITE 0x01
#define FCU_MSPRO_OP_TYPE_INIT 0x00
//Operation codes
#define FCU_MSPRO_OP_CODE_READ 0x20
#define FCU_MSPRO_OP_CODE_WRITE 0x21
#define FCU_MSPRO_OP_CODE_READ_ATTR 0x24
// Protocol types.
#define FCU_MSPRO_PROTOCOL_1BIT 0x0
#define FCU_MSPRO_PROTOCOL_4BIT 0x1
////////////////////////////////////////////////////////////////////////////////
// Function declarations.
////////////////////////////////////////////////////////////////////////////////
UINT
FcuMsProOperation( FX_MEDIA* psMedia,
UINT uiOpId,
ULONG ulLogicalSector,
ULONG ulNumOfSectors,
PBYTE pbyBuffer );
#endif // INTERNAL_MEM_CARD_READER
#endif
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -