/************************************************************************/
/* Copyright 2000-2018 MBARI											*/
/************************************************************************/
/* Summary	: Definitions for BEDS command processor on PIC32MX470		*/
/* Filename : bedsUI.h													*/
/* Author	: Robert Herlien (rah)										*/
/* Project	: Benthic Event Detection System (BEDS)						*/
/* Revision : 1.0														*/
/* Created	: 09/17/2012													*/
/*																			*/
/* MBARI provides this documentation and code "as is", with no warranty,	*/
/* express or implied, of its quality or consistency. It is provided without*/
/* support and without obligation on the part of the Monterey Bay Aquarium	*/
/* Research Institute to assist in its use, correction, modification, or	*/
/* enhancement. This information should not be published or distributed to	*/
/* third parties without specific written permission from MBARI.			*/
/*																			*/
/************************************************************************/
/* Modification History:												*/
/* 17sep2012 rah - created from Persistor "toPico" stationery and Oasis */
/* 28feb2018 rah - Ported to BEDS2 on PIC32MX470						*/
/************************************************************************/

#ifndef INCbedsUIh
#define INCbedsUIh		1

#include <mbariTypes.h>
#include <beds.h>
#include <serial.h>

#define CMDBUF_LEN		1024
#define NARGS			32

typedef CmdRtn	(*CmdFunc)(int argc, char **argv);

typedef struct					/****************************************/
{								/* Cmd Table Entry						*/
	char	*cmdName;			/* Command name							*/
	CmdFunc cmdFunc;			/* Pointer to function to impl. command */
	char	*cmdHelp;			/* Help string							*/
} CmdEntry;						/****************************************/


/****************************************/
/* Function Declarations				*/
/****************************************/

void	runUI(SerPort port);
CmdRtn	helpCmd(int argc, char **argv);
CmdRtn	cmdTest(int argc, char **argv);


#endif	/* INCbedsUIh */
