firmware: Implement debug command via USB control vendor class

Allows to collect talloc reports and other debug information
from a script while the remsim-client is still running.

Change-Id: I1f4d29335eb0d2feef376b8ecdfe57a0162914d6
This commit is contained in:
Alexander Couzens
2026-07-13 19:59:58 +02:00
parent bcc8241833
commit 4ac723a985
5 changed files with 171 additions and 0 deletions
+3
View File
@@ -120,6 +120,9 @@ extern void Sniffer_usart1_irq(void);
extern void mode_cardemu_usart0_irq(void);
extern void mode_cardemu_usart1_irq(void);
/* Vendor request functions */
void mode_cardemu_ctrl_vendor_req(const USBGenericRequest *request);
/* Timer helper function */
void Timer_Init( void );
void TC0_Counter_Reset( void );
@@ -86,6 +86,12 @@ enum simtrace_msg_type_sniff {
SIMTRACE_MSGT_SNIFF_TPDU,
};
/* Simtrace ctrl vendor requests */
enum simtrace_vendor_req {
/* get debug infos */
SIMTRACER_VENDOR_REQ_GET_DEBUG_INFO = 0,
};
/* common message header */
struct simtrace_msg_hdr {
uint8_t msg_class; /* simtrace_msg_class */