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
include/DeviceDriverInterface.h
- Committer:
- Inscape_ao
- Date:
- 2019-05-18
- Revision:
- 10:db2be22bc2f9
- Parent:
- 9:c81d0df866f5
File content as of revision 10:db2be22bc2f9:
#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)(int deviceID, Serial *pOut, FILE *pSave);
bool (*ready2run)(void);
bool (*run2ready)(void);
} DeviceDriver;
#endif /* _DEVICEDRIVER_INTERFACE_H_ */