//*** adp.h contains function prototypes for Sontek ADP
//  CF2 Spray2008 controller version
//*****************************************************************************

void    adp_alloc       ( struct adp_param *adp  ); 
short   adp_chk_chksum  ( unsigned char *sget    );

short   adp_on          ( void    );
short   adp_off         ( void    );
void    adp_setup0      ( void    ); 
void    adp_info        ( void    ); 
short   adp_cmd_rqst    ( char *s );
short   adp_wakeup      ( void    ); 
void    adp_sample_mode ( void    );
short   adp_exit_sample ( void    );
short   adp_query       ( void    );
void    adp_set_up      ( float f ); 

short   adp_get_sample  ( void    ); 
void    adp_store       ( unsigned char *b ); 
void    parse_last      ( void    );
void    adp_dump        ( void    ); 
void    adp_flash_dump  ( short p ); 

void    adp_post_process( void    );
void adp_shallow_process( void    );
void    adp_sbd_param   ( void    );
void    adp_pro_test    ( void    );
void    adp_shallow     ( void    ); 

void    test_adp        ( void    ); 

//  altimeter mode ----------------------------------------------
void    adp_set_alt     ( void    ); 
short   adp_altimeter   ( void    );
short   process_alt     ( void    );
short   adp_get_alt     ( void    ); 
void    alt_flash_dump  ( void    ); 


// Define max #bytes write out, ADP_NCELL is defined in setup.h
#define N_ADP_PROFILE ( 12 * ADP_NCELL ) // MAX #bytes in profile = 12*ncells
#define N_ADP_BYTES ( N_ADP_PROFILE + 41 )
	 // N_ADP_BYTES =  MAX #bytes in the returned LONG ADP data stream
#define N_ADP_OUT ( N_ADP_PROFILE + 6 ) // MAX #bytes for output in one scan
#define ADP_PMIN 5    // depth to stop ADP profiling on ascent
	// start depth is in eeprom at ee_adp_zmax
	// max # of scans per ascent = ADP_NSCANS, is in setup.h



//*** end *********************************************************************
