/****************************************************************************/
/* Copyright 2003-2012 MBARI						    */
/****************************************************************************/
/* Summary  : Definitions for DMP setup for BEDS on Persistor CF2	    */
/* Filename : dmpSetup.h                                                    */
/* Author   : Robert Herlien (rah)					    */
/* Project  : BEDS (Benthic Event Detection System)			    */	
/* Revision : 1.0							    */
/* Created  : 10/15/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:						    */
/* 15oct2012 rah - created						    */
/****************************************************************************/

#ifndef INCdmpSetuph
#define INCdmpSetpuh	1

// FIFO is 1024 bytes.  Packet size is 42 bytes.  So FIFO can hold 24 packets.
// Use 2/3 that amount, leaving 1/3 free for overruns

#define FIFO_DEPTH	16

#define INV_PRIORITY_EVENT	1000
#define INV_PRIORITY_WATCH	1100


/****************************************/
/* Function Declarations		*/
/****************************************/

char	*checkBW(Void);
char	*checkAccelRange(Void);
char	*checkGyroRange(Void);
Void	setAccelRange(float range);
Void	setDMP(Int32 fifoRate);
Nat32	loopDelay(Int32 fifoRate);

#endif	/* INCdmpSetuph */
