view uptools/atcmd/resp_parse.h @ 751:5dd748850f2b

fc-shell help: batt command: better documentation The semantic meaning of the two bytes carried in the MMI_BATTERY_IND primitive depends on the firmware version. Update the documentation to describe what these two bytes mean in current FC Tourmaline firmware.
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 05 Nov 2020 19:30:14 +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