xrocusOS_ADXL355 version

Dependencies:   mbed SDFileSystem

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers DeviceDriverInterface.h Source File

DeviceDriverInterface.h

00001 #ifndef _DEVICEDRIVER_INTERFACE_H_
00002 #define _DEVICEDRIVER_INTERFACE_H_
00003 
00004 #include "mbed.h"
00005 #include "SDDataStore.h"
00006 
00007 typedef struct s_device_driver {
00008     int (*init)(void);
00009     bool (*set_config)(int id_pos, int set);
00010     bool (*get_config)(int id_pos, int*get);
00011     bool (*reset)(void);
00012     bool (*exec)(int deviceID, Serial *pOut, FILE *pSave);
00013     bool (*ready2run)(void);
00014     bool (*run2ready)(void);
00015 } DeviceDriver;
00016 
00017 #endif /* _DEVICEDRIVER_INTERFACE_H_ */