Fix dilatometer, other misc stuff
[matches/MCTX3420.git] / server / sensors / strain.h
1 #ifndef _STRAIN_H
2 #define _STRAIN_H
3
4 #include "../common.h"
5 #include <stdbool.h>
6
7 /**
8  * Enum of strain IDs
9  */
10 typedef enum
11 {
12         STRAIN0,
13         STRAIN1,        
14         STRAIN2,
15         STRAIN3
16 } StrainID;
17
18 // Initialise a strain gauge
19 extern bool Strain_Init(const char * name, int id);
20 // Read from a strain gauge
21 extern bool Strain_Read(int id, double * value);
22
23 extern bool Strain_Cleanup(int id);
24 extern bool Strain_Sanity(int id, double value);
25
26 #endif //_STRAIN_H

UCC git Repository :: git.ucc.asn.au