Qubit 2020 / presensfirmwareupdate

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers presens.h Source File

presens.h

00001 #ifndef PRESENS_H
00002 #define PRESENS_H
00003 
00004 //#include "SerialBuffered.h"
00005 
00006 #define PRESENS_BAUD                            19200
00007 /* The number of bits in a word (5-8; default = 8) */
00008 #define PRESENS_NO_BITS                             8
00009 /* parity - The parity used (Serial::None, Serial::Odd, Serial::Even, Serial::Forced1, Serial::Forced0; default = Serial::None) */
00010 #define PRESENS_PARITY                   Serial::None
00011 /* stop - The number of stop bits (1 or 2; default = 1) */
00012 #define PRESENS_NO_STOP_BITS                        1
00013 
00014 #define PRESENS_CONFIG_DELAY                      0.3
00015 #define PRESENS_LED_DEFAULT                     150.0
00016 
00017 #define PRESENS_RES_LENGTH                          3
00018 #define PRESENS_SALINITY                           20
00019 
00020 /* MACRO for config of PRESENS. */
00021 #define PRESENS_SET_SACU(_newSacu)   presenseComm.printf("sacu%-.4d\r", (int)_newSacu);
00022 
00023 extern Serial presenseComm;
00024 //extern SerialBuffered presenseComm;
00025 
00026 void presensInit(void);
00027 void presensConfig(float ledCurrent);
00028 void presensGetData(float* result);
00029 
00030 #endif