Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Picaso_4DGL-32PTU.h
- Revision:
- 22:cea582ea74c1
- Parent:
- 21:ea68a8a3cea4
- Child:
- 23:dd2c28fa4dfd
--- a/Picaso_4DGL-32PTU.h Mon Sep 26 13:41:22 2016 +0000
+++ b/Picaso_4DGL-32PTU.h Tue Sep 27 08:48:08 2016 +0000
@@ -99,6 +99,38 @@
// FAT16 file system commands
#define FILE_MOUNT 0xFF03
#define FILE_ERROR 0xFF1F
+#define FILE_COUNT 0x0001
+#define FILE_DIR 0x0002
+#define FILE_FIRST 0x0006
+#define FILE_FIRST_RET 0x0024
+#define FILE_NEXT 0x
+#define FILE_NEXT_REP 0x
+#define FILE_EXISTS 0x
+#define FILE_OPEN 0x
+#define FILE_CLOSE 0x
+#define FILE_READ 0x
+#define FILE_SEEK 0x
+#define FILE_INDEX 0x
+#define FILE_TELL 0x
+#define FILE_WRITE 0x
+#define FILE_SIZE 0x
+#define FILE_IMAGE 0x
+#define FILE_S_CAPTURE 0x
+#define FILE_CHAR_TO 0x
+#define FILE_CHAR_FROM 0x
+#define FILE_WORD_TO 0x
+#define FILE_WORD_FROM 0x
+#define FILE_STRING_TO 0x
+#define FILE_STRING_FROM 0x
+#define FILE_ERASE 0x
+#define FILE_REWIND 0x
+#define FILE_LOAD_F 0x
+#define FILE_CALL_F 0x
+#define FILE_RUN 0x
+#define FILE_EXECUTE 0x
+#define FILE_IMAGE_CTRL 0x
+#define FILE_UNMOUNT 0x
+#define FILE_WAV 0x
@@ -209,10 +241,15 @@
bool writeByteResponse(); // response from write sector command
bool fileMountResponse(); // response from file mount
short fileErrorResponse(); // returns error code
+ short fileCountResponse(); // returns searched file count
// File system commands
bool file_Mount(); // mount file system
short file_Error(); // get latest error code
+ short file_Count(char*); // get file count by given name
+ short file_Dir(char*); // list the stream of filenames by given name and return count
+ void file_FindFirst(char*); // list the stream of filenames by given name
+ char *file_FindFirstRet(char*); // list the stream of filenames by given name
protected :