EEPROM_STM_Arduino 0.9.0
EEPROM:M24C02 class driver
Loading...
Searching...
No Matches
M24C02.h
Go to the documentation of this file.
1
8#ifndef ARDUINO_M24C02_H
9#define ARDUINO_M24C02_H
10
11#include <Arduino.h>
12#include <stdint.h>
13
14#include <I2C_device.h>
15
23class M24C02 : public I2C_device
24{
25public:
30 M24C02( uint8_t i2c_address = (0xA0 >> 1) );
31
37 M24C02( TwoWire& wire, uint8_t i2c_address = (0xA0 >> 1) );
38 virtual ~M24C02();
39
44 void begin( void );
45
51 int wait_write_complete( int n );
52
58 int write( int byte_adr, uint8_t data );
59 int write( int byte_adr, const uint8_t *dp, int length );
60
66 uint8_t read( int byte_adr );
67 int read( int byte_adr, uint8_t *dp, int length );
68};
69
70#endif // ARDUINO_M24C02_H
int wait_write_complete(int n)
Definition M24C02.cpp:61
uint8_t read(int byte_adr)
Definition M24C02.cpp:72
void begin(void)
Definition M24C02.cpp:15
virtual ~M24C02()
Definition M24C02.cpp:11
M24C02(uint8_t i2c_address=(0xA0 > > 1))
Definition M24C02.cpp:3
int write(int byte_adr, uint8_t data)
Definition M24C02.cpp:19