//*** sbe.h contains function prototypes for SBE CTD
//  CF2 Spray2008 controller version
//  mar11 added DOX prototypes
//*****************************************************************************

short    sbe_pump_lo     ( void  );
short    sbe_pump_hi     ( void  );
short    sbe_pump_off    ( void );

short    send_sbe        ( TUPort *tup, char str[], char sget[] );
void     query_sbe       ( void );
void     cr_2_sbe        ( void );
short    sbe_wakeup      ( void );
void     sbe_status      ( void );
void     sbe_sleep       ( void );
void     sbe_p_reset     ( void );


float    sbe_fp_samp     ( void );
float    sbe_fp          ( void );

void     sbe_send_tsp    ( void );
short    sbe_get_tsp     (  float *p, float *t, float *s);
short    sbe_get_lts     (  float *p, float *t, float *s);


// Mar11 Need following for SBE DOX sensor ========================
  void   sbe_send_tspo   (  void     );
  short  sbe_get_tspo    (  float *p, float *t, float *s, float *d);
  short  sbe_get_ltso    (  float *p, float *t, float *s, float *d);
  ushort intDval         (  float d  );  
  void   DOxTransparent   (  void );  //Transparent COMM to SBE63
//=================================================================

// JUL13 Need following for SBE63 DO6 sensor ======================
short  start_do6   (  void );
short  close_do6   (  void ); 
short  send_ts_do6 (  TUPort *tup ); //oct14
short  do63_attn   (  TUPort *tup ); //FEB19
short  findFirstDec(  char *str, short n ); //FEB19
short  do6_get_ts  (  float *d, float *dT, float *dU);
//=====================================================================

ushort   intPval         ( float   p );
float    fltPval         ( ushort ip );
ushort   intTval         ( float   t ); 
ushort   intSval         ( float   s );


void     sbe_stop_profile  ( void     );
void     sbe_start_profile ( void     );
ushort   sbe_avg_p         ( short n  );

void     test_sbe         ( void );

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