Added MS/TP automatic baudrate detection option into the core MS/TP state machine. (#900)

This commit is contained in:
Steve Karg
2025-02-03 15:10:31 -06:00
committed by GitHub
parent c5b129e9ab
commit 19ef7f74cd
12 changed files with 471 additions and 11 deletions
+7
View File
@@ -90,6 +90,13 @@ typedef enum MSTP_Zero_Config_State {
MSTP_ZERO_CONFIG_STATE_USE = 5
} MSTP_ZERO_CONFIG_STATE;
/* MSTP auto-baud FSM states */
typedef enum MSTP_Auto_Baud_State {
MSTP_AUTO_BAUD_STATE_INIT = 0,
MSTP_AUTO_BAUD_STATE_IDLE = 1,
MSTP_AUTO_BAUD_STATE_USE = 2
} MSTP_AUTO_BAUD_STATE;
/* The time without a DataAvailable or ReceiveError event before declaration */
/* of loss of token: 500 milliseconds. */
#define Tno_token 500