mirror of https://github.com/lumapu/ahoy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
911 B
30 lines
911 B
#ifndef __EEP_H__
|
|
#define __EEP_H__
|
|
|
|
#include "Arduino.h"
|
|
|
|
class eep {
|
|
public:
|
|
eep();
|
|
~eep();
|
|
|
|
void read(uint32_t addr, char *str, uint8_t length);
|
|
void read(uint32_t addr, float *value);
|
|
void read(uint32_t addr, bool *value);
|
|
void read(uint32_t addr, uint8_t *value);
|
|
void read(uint32_t addr, uint8_t data[], uint8_t length);
|
|
void read(uint32_t addr, uint16_t *value);
|
|
void read(uint32_t addr, uint32_t *value);
|
|
void write(uint32_t addr, const char *str, uint8_t length);
|
|
void write(uint32_t addr, uint8_t data[], uint8_t length);
|
|
void write(uint32_t addr, float value);
|
|
void write(uint32_t addr, bool value);
|
|
void write(uint32_t addr, uint8_t value);
|
|
void write(uint32_t addr, uint16_t value);
|
|
void write(uint32_t addr, uint32_t value);
|
|
|
|
private:
|
|
|
|
};
|
|
|
|
#endif /*__EEP_H__*/
|
|
|