diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-28 09:30:38 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-28 09:30:38 +0100 |
| commit | 7df7ed6d026c5e1f3b8111e3536af3771301c177 (patch) | |
| tree | f87916ee645aec06971a84dc1e9e5f1267fbe755 /lib/30pin.h | |
| parent | 176cf8f237745d658185a2fba8fff1401c1c2b5f (diff) | |
feat! firmware breaking changes on the API.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'lib/30pin.h')
| -rw-r--r-- | lib/30pin.h | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/lib/30pin.h b/lib/30pin.h deleted file mode 100644 index 152812b..0000000 --- a/lib/30pin.h +++ /dev/null @@ -1,43 +0,0 @@ -/* ------------------------------------------- - - Copyright (C) 2024-2025, Amlal El Mahrouss, licensed under Apache 2.0. - -------------------------------------------- */ - -#pragma once - -#include <lib/boot.h> - -/// @file 30pin.h -/// @brief 30pin recovery protocol. -/// @details This file contains the definitions and structures used for the 30pin recovery protocol. - -#define NB_30PIN_MAG "TP" -#define NB_30PIN_MAG_LEN (2) - -#define NB_30PIN_BUFFER_LEN (498) -#define NB_30PIN_EOP_LEN (11) - -/// @brief 30pin recovery header. -/// @param mag magic number. -/// @param kind kind of packet we deal with. -/// @param buffer the data of the packet. -/// @param eop end of packet data. -struct _nb_tpin_recovery_packet { - uint8_t mag[NB_30PIN_MAG_LEN]; - uint8_t kind; - uint8_t buffer[NB_30PIN_BUFFER_LEN]; - uint8_t eop[NB_30PIN_EOP_LEN]; -}; - -/// @brief 30pin recovery packet kinds. -enum { - TPIN_RECOVERY_PACKET_KIND_UNKNOWN = 0, - TPIN_RECOVERY_PACKET_KIND_BOOT = 1, - TPIN_RECOVERY_PACKET_KIND_DATA = 2, - TPIN_RECOVERY_PACKET_KIND_EOP = 3, - TPIN_RECOVERY_PACKET_KIND_EOP_ACK = 4, - TPIN_RECOVERY_PACKET_KIND_EOP_NACK = 5, -}; - -typedef struct _nb_tpin_recovery_packet cb_tpin_recovery_packet_t;
\ No newline at end of file |
