modified the CLI prompt to also show if TCP/UDP is used in the communication

This commit is contained in:
iceman1001
2023-10-20 10:38:53 +02:00
parent b9ae38f888
commit a35bfbb13e
6 changed files with 54 additions and 9 deletions
+9
View File
@@ -54,6 +54,13 @@ typedef enum {
FPGA_MEM,
} DeviceMemType_t;
typedef enum {
PM3_TCPv4,
PM3_TCPv6,
PM3_UDPv4,
PM3_NONE,
} CommunicationProtol_t;
typedef struct {
bool run; // If TRUE, continue running the uart_communication thread
bool block_after_ACK; // if true, block after receiving an ACK package
@@ -62,6 +69,8 @@ typedef struct {
bool send_with_crc_on_fpc;
// "Session" flag, to tell via which interface next msgs are sent: USB or FPC USART
bool send_via_fpc_usart;
// to tell if we are using TCP/UDP/TCPv6
CommunicationProtol_t send_via_ip;
// To memorise baudrate
uint32_t uart_speed;
uint16_t last_command;