xrocusOS_ADXL355 version
Dependencies: mbed SDFileSystem
Diff: include/DeviceDriverInterface.h
- Revision:
- 9:c81d0df866f5
- Parent:
- 7:9ab8809f9693
- Child:
- 10:db2be22bc2f9
--- a/include/DeviceDriverInterface.h Sat May 11 04:20:42 2019 +0000 +++ b/include/DeviceDriverInterface.h Mon May 13 02:56:39 2019 +0000 @@ -1,11 +1,17 @@ #ifndef _DEVICEDRIVER_INTERFACE_H_ #define _DEVICEDRIVER_INTERFACE_H_ +#include "mbed.h" +#include "SDDataStore.h" + typedef struct s_device_driver { int (*init)(void); bool (*set_config)(int id_pos, int set); bool (*get_config)(int id_pos, int*get); bool (*reset)(void); + bool (*exec)(Serial *pOut, FILE *pSave); + bool (*ready2run)(void); + bool (*run2ready)(void); } DeviceDriver; #endif /* _DEVICEDRIVER_INTERFACE_H_ */ \ No newline at end of file