Add usleep to strain.c just in case...
[matches/MCTX3420.git] / server / device.h
1 /**
2  * @file device.h
3  * @brief Declare code/typedefs common to both Sensors and Actuators
4  */
5 #ifndef _DEVICE_H
6 #define _DEVICE_H
7
8 /** Function pointer for sensor reading **/
9 typedef bool (*ReadFn)(int, double *);
10 /** Function pointer for actuator setting **/
11 typedef bool (*SetFn)(int, double);
12 /** Function pointer for sensor initialisation **/
13 typedef bool (*InitFn)(const char *, int);
14 /** Function pointer for sensor cleanup **/
15 typedef bool (*CleanFn)(int);
16 /** Function to check the sanity of a value **/
17 typedef bool (*SanityFn)(int, double);
18
19 #endif //_DEVICE_H

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