view uptools/atcmd/resp_parse.h @ 584:ace7270e1161

openmoko/modem-power-ctrl.sh: reduced sleep to 200 ms
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 03 Feb 2020 02:51:44 +0000
parents 02d6c8469535
children
line wrap: on
line source

/*
 * Data structures for parsing structured responses to AT commands
 */

struct resp_field {
	int		type;
	unsigned	num;
	char		*str;
};

#define	RESP_FIELD_EMPTY	0
#define	RESP_FIELD_NUMBER	1
#define	RESP_FIELD_STRING	2