Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed SDFileSystem
Diff: include/DeviceDriverInterface.h
- Revision:
- 7:9ab8809f9693
- Child:
- 9:c81d0df866f5
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/include/DeviceDriverInterface.h Sat May 11 04:03:33 2019 +0000
@@ -0,0 +1,11 @@
+#ifndef _DEVICEDRIVER_INTERFACE_H_
+#define _DEVICEDRIVER_INTERFACE_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);
+} DeviceDriver;
+
+#endif /* _DEVICEDRIVER_INTERFACE_H_ */
\ No newline at end of file