view sw/sniff-dec/state.h @ 55:5268246520de

simsniff-dec: decode command opcodes
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 04 Oct 2023 00:20:05 +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