PSXSDK
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
memcard.h
Go to the documentation of this file.
1 #ifndef _PSXSDK_MEMCARD_H
2 #define _PSXSDK_MEMCARD_H
3 
4 /*Card connection related*/
6 {
11 };
12 
18 {
25 };
26 
27 /*Card block type*/
28 /*#define BLOCK_FORMATTED 0x000000A0
29 #define BLOCK_INITIAL 0x00000051
30 #define BLOCK_MIDLINK 0x00000052
31 #define BLOCK_ENDLINK 0x00000053
32 #define BLOCK_DEL_INITIAL 0x000000A1
33 #define BLOCK_DEL_MIDLINK 0x000000A2
34 #define BLOCK_DEL_ENDLINK 0x000000A3*/
35 
36 /*128 byte card directory*/
37 /*typedef struct{
38  long BlockType;
39  long FileSize;
40  short NextBlock;
41  char FileName[20];
42  char Reserved[97];
43  char XorChecksum;
44 }CARDDIR;*/
45 
54 unsigned char McReadSector(int card_slot, int sector, unsigned char *buffer);
55 
64 unsigned char McWriteSector(int card_slot, int sector, unsigned char *buffer);
65 
72 unsigned int McGetStatus(int card_slot);
73 
74 #endif