view sw/sniff-dec/state.h @ 56:966a54303d68

simsniff-dec: factor out high-level decoding
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 04 Oct 2023 01:18:50 +0000
parents b0524d1dc6ef
children
line wrap: on
line source

/*
 * This header file defines our little state machine for SIMtrace session
 * log analysis.
 */

#define	STATE_UNDEF		0
#define	STATE_ERROR		1
#define	STATE_RSTLOW		2
#define	STATE_ATR_TS		3
#define	STATE_ATR_CONT		4
#define	STATE_READY_FOR_CMD	5
#define	STATE_PPS_MSG		6
#define	STATE_CMD_HDR		7
#define	STATE_CMD_PROC		8
#define	STATE_CMD_DATA		9
#define	STATE_CMD_SW		10