tiz
Config.h
- Committer:
- youle1119
- Date:
- 2016-09-14
- Revision:
- 0:d60c26d5fddc
File content as of revision 0:d60c26d5fddc:
#include "mbed.h"
#include "Error.h"
#ifndef __CONFIG_H__
#define __CONFIG_H__
class Config
{
private:
char __filename[50];
int32_t __acc_offset[3];
int32_t __gyo_offset[3];
int32_t __mag_offset[3];
public:
Config(char *filename);
void write();
void set_acc_offset(int a[3]);
void set_ayo_offset(int a[3]);
void set_mag_offset(int a[3]);
~Config();
};
#endif //__CONFIG_H__