summaryrefslogtreecommitdiffhomepage
path: root/include/30pin.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/30pin.h')
-rw-r--r--include/30pin.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/30pin.h b/include/30pin.h
index b7b0924..336f536 100644
--- a/include/30pin.h
+++ b/include/30pin.h
@@ -37,6 +37,13 @@ enum {
TPIN_RECOVERY_PACKET_KIND_EOP = 3,
TPIN_RECOVERY_PACKET_KIND_EOP_ACK = 4,
TPIN_RECOVERY_PACKET_KIND_EOP_NACK = 5,
+ TPIN_RECVOERY_PACKET_KIND_RESET = 6,
+ TPIN_RECOVERY_PACKET_KIND_COUNT = TPIN_RECVOERY_PACKET_KIND_RESET - TPIN_RECOVERY_PACKET_KIND_BOOT + 1
};
-typedef struct _nb_tpin_recovery_packet cb_tpin_recovery_packet_t; \ No newline at end of file
+/// @brief 30pin CRC type.
+typedef uint8_t nb_tpin_crc_t[sizeof(uint32_t)];
+
+typedef struct _nb_tpin_recovery_packet nb_tpin_recovery_packet_t;
+
+size_t nb_parse_30pin(voidptr_t blob, size_t* size, size_t* start_lba); \ No newline at end of file