xrocusOS_ADXL355 version
Dependencies: mbed SDFileSystem
include/DeviceDriverInterface.h@9:c81d0df866f5, 2019-05-13 (annotated)
- Committer:
- Inscape_ao
- Date:
- Mon May 13 02:56:39 2019 +0000
- Revision:
- 9:c81d0df866f5
- Parent:
- 7:9ab8809f9693
- Child:
- 10:db2be22bc2f9
add DeviceDriver Interface; add Response (XDS, XFD)
Who changed what in which revision?
User | Revision | Line number | New 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 | 9:c81d0df866f5 | 12 | bool (*exec)(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_ */ |