xrocusOS_ADXL355 version

Dependencies:   mbed SDFileSystem

Committer:
APS_Lab
Date:
Fri Jul 05 02:09:06 2019 +0000
Revision:
20:2f2687580ecb
Parent:
10:db2be22bc2f9
Ver0.0

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Inscape_ao 7:9ab8809f9693 1 #ifndef _DEVICEDRIVER_INTERFACE_H_
Inscape_ao 7:9ab8809f9693 2 #define _DEVICEDRIVER_INTERFACE_H_
Inscape_ao 7:9ab8809f9693 3
Inscape_ao 9:c81d0df866f5 4 #include "mbed.h"
Inscape_ao 9:c81d0df866f5 5 #include "SDDataStore.h"
Inscape_ao 9:c81d0df866f5 6
Inscape_ao 7:9ab8809f9693 7 typedef struct s_device_driver {
Inscape_ao 7:9ab8809f9693 8 int (*init)(void);
Inscape_ao 7:9ab8809f9693 9 bool (*set_config)(int id_pos, int set);
Inscape_ao 7:9ab8809f9693 10 bool (*get_config)(int id_pos, int*get);
Inscape_ao 7:9ab8809f9693 11 bool (*reset)(void);
Inscape_ao 10:db2be22bc2f9 12 bool (*exec)(int deviceID, Serial *pOut, FILE *pSave);
Inscape_ao 9:c81d0df866f5 13 bool (*ready2run)(void);
Inscape_ao 9:c81d0df866f5 14 bool (*run2ready)(void);
Inscape_ao 7:9ab8809f9693 15 } DeviceDriver;
Inscape_ao 7:9ab8809f9693 16
Inscape_ao 7:9ab8809f9693 17 #endif /* _DEVICEDRIVER_INTERFACE_H_ */