/************************************************************************/
/* Copyright 2009 MBARI													*/
/************************************************************************/
/* Summary	: Definitions for remote serial and power ports for Respiromters*/
/* Filename : remote.h													*/
/* Author	: Robert Herlien (rah)										*/
/* Project	: Benthic/Midwater Respirometers (BRS/MRS)					*/
/* Revision: 1.0														*/
/* Created	: 04/07/2009												*/
/*																			*/
/* 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:												*/
/* 07apr2009 rah - created												*/
/************************************************************************/

#ifndef INCusrRemoteCmdsh
#define INCusrRemoteCmdsh		1

#include <mbariTypes.h>
#include <oasis.h>
#include <modbus.h>


/****************************************/
/* Function Declarations				*/
/****************************************/

CmdRtn	showRemote(void);
CmdRtn	usrRemPower(ParmMask_t pmask, char *bitStr, char *onOffStr);
CmdRtn	usrRemOutput(ParmMask_t pmask, char *bitStr, char *onOffStr);
CmdRtn	usrRemOutPulse(ParmMask_t pmask, char *bitStr, char *timeStr);
CmdRtn	usrAssignSerial(ParmMask_t pmask, Parm_t virtPort, Parm_t bus, Parm_t slave, Parm_t port);
CmdRtn	usrAssignPower(ParmMask_t pmask, Parm_t virtPort, Parm_t bus, Parm_t slave, Parm_t port);
CmdRtn	usrAssignOutput(ParmMask_t pmask, Parm_t virtPort, Parm_t bus, Parm_t slave, Parm_t port);
const char	*busTypeStr(ModBusType busType);

#endif	/* INCusrRemoteCmdsh */
