From 361404f940d16a0634fccc6d929f5f81a3ba8fc9 Mon Sep 17 00:00:00 2001 From: sys64738 Date: Thu, 26 Aug 2021 18:25:06 +0000 Subject: [PATCH] Update 'USB config & command protocol' --- USB-config-%26-command-protocol.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/USB-config-%26-command-protocol.md b/USB-config-%26-command-protocol.md index e209324..881acc6 100644 --- a/USB-config-%26-command-protocol.md +++ b/USB-config-%26-command-protocol.md @@ -26,6 +26,12 @@ These commands work at any moment and are used to query the general device state * Set cur mode (`0x03`): sets the current mode. One extra request byte (the mode number), no response payload. * Get info string (`0x04`): get a null-terminated string containing human-readable info about the device. For display purposes only. +### Persistent storage commands + +* Get storage info (`0x0c`): returns the 256-byte header data of the persistent storage. No arguments. +* Get mode storage data (`0x0d`): returns the (variable-length) data of a mode. One argument byte, the mode. +* Flush data to storage medium (`0x0e`): writes the storage data when changed. Automatically called on OS USB detach/unmount (as long as there is still power supplied to the device). + ## Common mode commands These commands work for any mode, and have the same effect across all of them.