2018 revision to classic DataBus AVC code.
Dependencies: LSM303DLM Servo SerialGraphicLCD L3G4200D IncrementalEncoder SimpleShell
Config.h@3:4ffb1f9ba166, 2018-12-02 (annotated)
- Committer:
- shimniok
- Date:
- Sun Dec 02 17:48:23 2018 +0000
- Revision:
- 3:4ffb1f9ba166
- Parent:
- 1:7019a60fd585
- Child:
- 4:de7feb458652
added overloaded attach() for each parameter type
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
shimniok | 1:7019a60fd585 | 1 | #ifndef __CONFIG_H |
shimniok | 1:7019a60fd585 | 2 | #define __CONFIG_H |
shimniok | 1:7019a60fd585 | 3 | |
shimniok | 3:4ffb1f9ba166 | 4 | #include "mbed.h" |
shimniok | 3:4ffb1f9ba166 | 5 | |
shimniok | 1:7019a60fd585 | 6 | class Config { |
shimniok | 1:7019a60fd585 | 7 | public: |
shimniok | 1:7019a60fd585 | 8 | int load(char *filename); |
shimniok | 3:4ffb1f9ba166 | 9 | void attach(Callback<void(char *)> cb); |
shimniok | 3:4ffb1f9ba166 | 10 | void attach(Callback<void(int)> cb); |
shimniok | 3:4ffb1f9ba166 | 11 | void attach(Callback<void(float)> cb); |
shimniok | 3:4ffb1f9ba166 | 12 | void attach(Callback<void(double)> cb); |
shimniok | 1:7019a60fd585 | 13 | } |
shimniok | 1:7019a60fd585 | 14 | |
shimniok | 1:7019a60fd585 | 15 | #endif |