summaryrefslogtreecommitdiff
path: root/include/stick20_commands.h
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-01-11 16:04:52 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2017-01-11 16:04:52 +0100
commitc2d3de8820cc2ad3f394b6672853af257d32e6f6 (patch)
tree5adebf80eb9ff293694146ac48363c2fc8ae2c30 /include/stick20_commands.h
parent0c6f3234acea5888dd6c3c3aeee8cebcce59ba06 (diff)
downloadlibnitrokey-c2d3de8820cc2ad3f394b6672853af257d32e6f6.tar.gz
libnitrokey-c2d3de8820cc2ad3f394b6672853af257d32e6f6.tar.bz2
Helper functions for getting device state
get status for Pro and Storage check is device connected use make_shared for keeping instance reference fixed accessing active volume flag Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'include/stick20_commands.h')
-rw-r--r--include/stick20_commands.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/stick20_commands.h b/include/stick20_commands.h
index 386cbda..8080117 100644
--- a/include/stick20_commands.h
+++ b/include/stick20_commands.h
@@ -141,7 +141,14 @@ namespace nitrokey {
uint8_t NewSDCardFound_u8;
uint8_t SDFillWithRandomChars_u8;
uint32_t ActiveSD_CardID_u32;
- uint8_t VolumeActiceFlag_u8;
+ union{
+ uint8_t VolumeActiceFlag_u8;
+ struct {
+ bool unencrypted :1;
+ bool encrypted :1;
+ bool hidden :1;
+ } __packed VolumeActiceFlag_st;
+ } __packed;
uint8_t NewSmartCardFound_u8;
uint8_t UserPwRetryCount;
uint8_t AdminPwRetryCount;