2018 revision to classic DataBus AVC code.

Dependencies:   LSM303DLM Servo SerialGraphicLCD L3G4200D IncrementalEncoder SimpleShell

Committer:
shimniok
Date:
Mon Dec 03 21:51:14 2018 +0000
Revision:
4:de7feb458652
Parent:
3:4ffb1f9ba166
Child:
6:83a6666a62d7
implemented part of config read/parse

Who changed what in which revision?

UserRevisionLine numberNew 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 4:de7feb458652 9
shimniok 4:de7feb458652 10 /** Attach a setter for each key.
shimniok 4:de7feb458652 11 * @param set is the setter
shimniok 4:de7feb458652 12 * @key is the key for which Config will call setter
shimniok 4:de7feb458652 13 */
shimniok 4:de7feb458652 14 void attach(Callback<void(char *)> set, char *key);
shimniok 4:de7feb458652 15 void attach(Callback<void(int)> set, char *key);
shimniok 4:de7feb458652 16 void attach(Callback<void(float)> set, char *key);
shimniok 4:de7feb458652 17 void attach(Callback<void(double)> set, char *key);
shimniok 4:de7feb458652 18 private:
shimniok 4:de7feb458652 19 static const int MAXBUF=128;
shimniok 4:de7feb458652 20 char buf[MAXBUF];
shimniok 4:de7feb458652 21 };
shimniok 1:7019a60fd585 22
shimniok 1:7019a60fd585 23 #endif