Rihards Balass / 4DGL-mbed-32PTU
Revision:
20:88e137b9ea46
Parent:
19:a259bc128867
Child:
21:ea68a8a3cea4
--- a/Picaso_4DGL-32PTU.h	Thu Sep 15 13:31:53 2016 +0000
+++ b/Picaso_4DGL-32PTU.h	Mon Sep 26 10:51:02 2016 +0000
@@ -102,6 +102,11 @@
 #define MEDIA_READ_BYTE     0xFF8F
 #define MEDIA_READ_WORD     0xFF8E
 #define MEDIA_WRITE_BYTE    0xFF8D
+#define MEDIA_WRITE_WORD    0xFF8C
+#define MEDIA_FLUSH         0xFF8A
+
+// FAT16 file system commands
+#define FILE_MOUNT          0xFF03
 
 
 // Screen answers
@@ -243,6 +248,7 @@
     void textDemo(); // play demo with text based functions
     void graphicsDemo(); // play demo with graphics based functions
     void mediaDemo(); // play demo with media based functions
+    void fileSystemDemo(); // play FAT16 demo
 
 // Graphics Commands
     void cls(); // clear screen
@@ -293,6 +299,8 @@
     bool media_ReadByte(); // read byte
     bool media_ReadWord(); // read word
     bool media_WriteByte(short); // write byte
+    bool media_WriteWord(short); // write word
+    bool media_Flush(); // flush written bytes or words
 
 // Texts Commands
     void setFont(char); // set desired font from embedded fonts
@@ -322,7 +330,11 @@
     bool writeSectorResponse(int); // response from write sector command
     bool readResponse(); // response from read byte or read word commands
     bool writeByteResponse(); // response from write sector command
+    bool fileMountResponse(); // response from write sector command
     
+// File system commands
+    bool file_Mount(); // mount file system
+
 protected :
 
     Serial     _cmd; // serial variable, to comunicate with screen