2121 FileAttributes::FileAttributes_System | FileAttributes::FileAttributes_Directory | \
2222 FileAttributes::FileAttributes_Archive)
2323
24+ typedef enum __nfpack CardDetectState
25+ {
26+ CardDetectState_Inserted = 0 ,
27+ CardDetectState_Removed = 1 ,
28+ } CardDetectState ;
29+
2430typedef enum __nfpack SDCard_SDDataWidth
2531{
2632 SDCard_SDDataWidth__1_bit = 1 ,
@@ -45,6 +51,7 @@ typedef enum __nfpack StorageEventManager_StorageEventType
4551 StorageEventManager_StorageEventType_Invalid = 0 ,
4652 StorageEventManager_StorageEventType_RemovableDeviceInsertion = 1 ,
4753 StorageEventManager_StorageEventType_RemovableDeviceRemoval = 2 ,
54+ StorageEventManager_StorageEventType_CardDetectChanged = 3 ,
4855} StorageEventManager_StorageEventType ;
4956
5057typedef enum __nfpack DriveType
@@ -91,16 +98,28 @@ typedef enum __nfpack FileShare
9198 FileShare_ReadWrite = 3 ,
9299} FileShare ;
93100
101+ struct Library_nf_sys_io_filesystem_nanoFramework_System_IO_CardDetectChangedEventArgs
102+ {
103+ static const int FIELD___cardState = 1 ;
104+ static const int FIELD___slotIndex = 2 ;
105+
106+ //--//
107+ };
108+
94109struct Library_nf_sys_io_filesystem_nanoFramework_System_IO_FileSystem_SDCard
95110{
96111 static const int FIELD___mounted = 1 ;
97112 static const int FIELD___disposed = 2 ;
98113 static const int FIELD___sdCardType = 3 ;
99114 static const int FIELD___enableCardDetectPin = 4 ;
100- static const int FIELD___cardDetectPin = 5 ;
101- static const int FIELD___dataWidth = 6 ;
102- static const int FIELD___spiBus = 7 ;
103- static const int FIELD___chipSelectPin = 8 ;
115+ static const int FIELD___cardDetectedState = 5 ;
116+ static const int FIELD___cardDetectPin = 6 ;
117+ static const int FIELD___slotIndex = 7 ;
118+ static const int FIELD___autoMount = 8 ;
119+ static const int FIELD___dataWidth = 9 ;
120+ static const int FIELD___spiBus = 10 ;
121+ static const int FIELD___chipSelectPin = 11 ;
122+ static const int FIELD__CardDetectChanged = 12 ;
104123
105124 NANOCLR_NATIVE_DECLARE (InitNative___VOID );
106125 NANOCLR_NATIVE_DECLARE (NativeDispose___VOID );
@@ -111,21 +130,19 @@ struct Library_nf_sys_io_filesystem_nanoFramework_System_IO_FileSystem_SDCard
111130 //--//
112131};
113132
114- struct Library_nf_sys_io_filesystem_nanoFramework_System_IO_FileSystem_SDCard__SDCardMmcParameters
133+ struct Library_nf_sys_io_filesystem_nanoFramework_System_IO_FileSystem_SDCardMmcParameters
115134{
116- static const int FIELD__dataWidth = 1 ;
117- static const int FIELD__enableCardDetectPin = 2 ;
118- static const int FIELD__cardDetectPin = 3 ;
135+ static const int FIELD__slotIndex = 1 ;
136+ static const int FIELD__dataWidth = 2 ;
119137
120138 //--//
121139};
122140
123- struct Library_nf_sys_io_filesystem_nanoFramework_System_IO_FileSystem_SDCard__SDCardSpiParameters
141+ struct Library_nf_sys_io_filesystem_nanoFramework_System_IO_FileSystem_SDCardSpiParameters
124142{
125- static const int FIELD__spiBus = 1 ;
126- static const int FIELD__chipSelectPin = 2 ;
127- static const int FIELD__enableCardDetectPin = 3 ;
128- static const int FIELD__cardDetectPin = 4 ;
143+ static const int FIELD__slotIndex = 1 ;
144+ static const int FIELD__spiBus = 2 ;
145+ static const int FIELD__chipSelectPin = 3 ;
129146
130147 //--//
131148};
@@ -161,6 +178,7 @@ struct Library_nf_sys_io_filesystem_nanoFramework_System_IO_StorageEventManager
161178 static const int FIELD_STATIC__RemovableDeviceInserted = 0 ;
162179 static const int FIELD_STATIC__RemovableDeviceRemoved = 1 ;
163180 static const int FIELD_STATIC___drives = 2 ;
181+ static const int FIELD_STATIC___sdCardList = 3 ;
164182
165183 //--//
166184};
@@ -170,6 +188,7 @@ struct Library_nf_sys_io_filesystem_nanoFramework_System_IO_StorageEventManager_
170188 static const int FIELD__EventType = 3 ;
171189 static const int FIELD__VolumeIndex = 4 ;
172190 static const int FIELD__Time = 5 ;
191+ static const int FIELD__state = 6 ;
173192
174193 //--//
175194};
@@ -194,10 +213,10 @@ struct Library_nf_sys_io_filesystem_System_IO_FileSystemManager__FileRecord
194213
195214struct Library_nf_sys_io_filesystem_System_IO_FileSystemManager
196215{
197- static const int FIELD_STATIC___openFiles = 3 ;
198- static const int FIELD_STATIC___lockedDirs = 4 ;
199- static const int FIELD_STATIC___currentDirectoryRecord = 5 ;
200- static const int FIELD_STATIC__CurrentDirectory = 6 ;
216+ static const int FIELD_STATIC___openFiles = 4 ;
217+ static const int FIELD_STATIC___lockedDirs = 5 ;
218+ static const int FIELD_STATIC___currentDirectoryRecord = 6 ;
219+ static const int FIELD_STATIC__CurrentDirectory = 7 ;
201220
202221 //--//
203222};
@@ -218,7 +237,7 @@ struct Library_nf_sys_io_filesystem_System_IO_FileStream
218237
219238struct Library_nf_sys_io_filesystem_System_IO_File
220239{
221- static const int FIELD_STATIC__EmptyBytes = 7 ;
240+ static const int FIELD_STATIC__EmptyBytes = 8 ;
222241
223242 //--//
224243};
@@ -282,10 +301,10 @@ struct Library_nf_sys_io_filesystem_System_IO_NativeIO
282301
283302struct Library_nf_sys_io_filesystem_System_IO_Path
284303{
285- static const int FIELD_STATIC__DirectorySeparatorChar = 8 ;
286- static const int FIELD_STATIC__AltDirectorySeparatorChar = 9 ;
287- static const int FIELD_STATIC__VolumeSeparatorChar = 10 ;
288- static const int FIELD_STATIC__PathSeparator = 11 ;
304+ static const int FIELD_STATIC__DirectorySeparatorChar = 9 ;
305+ static const int FIELD_STATIC__AltDirectorySeparatorChar = 10 ;
306+ static const int FIELD_STATIC__VolumeSeparatorChar = 11 ;
307+ static const int FIELD_STATIC__PathSeparator = 12 ;
289308
290309 //--//
291310};
0 commit comments