device_ledger: factor the prologue code

This commit is contained in:
moneromooo-monero 2018-06-20 10:40:09 +01:00
parent 896512b2b6
commit 87e158b5b9
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
2 changed files with 61 additions and 412 deletions

View file

@ -102,6 +102,9 @@ namespace hw {
void logRESP(void);
unsigned int exchange(unsigned int ok=0x9000, unsigned int mask=0xFFFF);
void reset_buffer(void);
int set_command_header(BYTE ins, BYTE p1 = 0x00, BYTE p2 = 0x00);
int set_command_header_noopt(BYTE ins, BYTE p1 = 0x00, BYTE p2 = 0x00);
void send_simple(BYTE ins, BYTE p1 = 0x00);
// hw running mode
device_mode mode;