Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
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
Generated on Fri Sep 23 2022 19:29:17 by
1.7.2