aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-02-02 18:22:40 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2017-03-11 15:41:41 +0100
commit69fedd655a87c32c0c54eac46a1d6df7450873d6 (patch)
tree9b88e922a3303d74304d881b85342e3fe7ac30ef /include
parent43bb63424fb7e78c245341c1baf326557ef896e8 (diff)
downloadlibnitrokey-69fedd655a87c32c0c54eac46a1d6df7450873d6.tar.gz
libnitrokey-69fedd655a87c32c0c54eac46a1d6df7450873d6.tar.bz2
Add description for some Storage variables
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'include')
-rw-r--r--include/stick20_commands.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/include/stick20_commands.h b/include/stick20_commands.h
index fd72f1e..a3f1609 100644
--- a/include/stick20_commands.h
+++ b/include/stick20_commands.h
@@ -123,6 +123,9 @@ namespace nitrokey {
StorageCommandResponsePayload::TransmissionData transmission_data;
uint16_t MagicNumber_StickConfig_u16;
+ /**
+ * READ_WRITE_ACTIVE = ReadWriteFlagUncryptedVolume_u8 == 0;
+ */
uint8_t ReadWriteFlagUncryptedVolume_u8;
uint8_t ReadWriteFlagCryptedVolume_u8;
@@ -134,11 +137,22 @@ namespace nitrokey {
uint8_t __unused2;
uint8_t major;
} __packed versionInfo;
- };
+ } __packed;
uint8_t ReadWriteFlagHiddenVolume_u8;
uint8_t FirmwareLocked_u8;
- uint8_t NewSDCardFound_u8;
+
+ union{
+ uint8_t NewSDCardFound_u8;
+ struct {
+ bool NewCard :1;
+ uint8_t Counter :7;
+ } __packed NewSDCardFound_st;
+ } __packed;
+
+ /**
+ * SD card FILLED with random chars
+ */
uint8_t SDFillWithRandomChars_u8;
uint32_t ActiveSD_CardID_u32;
union{