Trond Enger / d7a_1x

Fork of d7a_1x by WizziLab

Revision:
66:492b1d7ba370
Parent:
65:ac3844adfe49
Child:
67:9ac9d109b80a
diff -r ac3844adfe49 -r 492b1d7ba370 include/d7a.h
--- a/include/d7a.h	Fri Oct 14 10:52:22 2016 +0000
+++ b/include/d7a.h	Fri Oct 21 15:31:45 2016 +0000
@@ -58,11 +58,11 @@
 /// File permissions for USER/GUEST
 //======================================================================
 typedef enum {
-    O_O                = 0b00000000,
-    R_O                = 0b10100000,
-    R_R                = 0b10100100,
-    W_O                = 0b01010000,
-    W_W                = 0b01010010,
+    O_O                = 0b11000000,
+    R_O                = 0b11100000,
+    R_R                = 0b11100100,
+    W_O                = 0b11010000,
+    W_W                = 0b11010010,
     RW_O               = 0b11110000,
     RW_R               = 0b11110100,
     RW_W               = 0b11110010,
@@ -134,6 +134,7 @@
     D7A_ERR_ILLEGAL_FILE_DEF            ,// The FILE parameters specified are illegal
     D7A_ERR_CMD_TO                      ,// The command expired
     D7A_ERR_TX_FAILED                   ,// Transmission failed
+    D7A_ERR_STATE                       ,// The device is not in the right state to execute the command
     
 } d7a_errors_t;