Kobayashi Akihiro / ActiveCaster

Dependents:   ActiveCaster_ ActiveCaster_2

SDclass.h

Committer:
e5119053f6
Date:
2022-01-24
Revision:
0:5e4f1e288e2a

File content as of revision 0:5e4f1e288e2a:

#ifndef SDCLASS_h
#define SDCLASS_h

#include "mbed.h"
//#include <SD.h>
#include "define.h"
#include "FATFileSystem.h"
#include "SDBlockDevice.h"
#include <string>

class mySDclass{
public:
    mySDclass();
    
    bool SD_enable = false;
    string logFileName;
    
    int init();
    int make_logfile();
    int write_logdata(string);

    int path_read(int, double*, double*, double*, double*, int*, int*, double*);

    double str2double(char*, int);
    int str2uint(char* str, int num);
};

#endif