M24LC64 library
Embed:
(wiki syntax)
Show/hide line numbers
M24LC64.h
00001 //********************** 00002 // M24LC64.h for mbed 00003 // 00004 // (C)Copyright 2014 All rights reserved by Y.Onodera 00005 // http://einstlab.web.fc2.com 00006 //********************** 00007 00008 #ifndef M24LC64_H_ 00009 #define M24LC64_H_ 00010 00011 #define M24LC64_ADDR 0xA0 00012 00013 #include "mbed.h" 00014 #include "typedef.h" 00015 00016 class M24LC64{ 00017 public: 00018 M24LC64 (PinName sda, PinName scl); 00019 M24LC64 (I2C& p_i2c); 00020 00021 void put(unsigned int a, unsigned char b); 00022 unsigned char get(unsigned int a); 00023 00024 protected: 00025 I2C _i2c; 00026 char buf[3]; 00027 WORD_VAL adr; 00028 00029 }; 00030 00031 00032 #endif /* M24LC64_H_ */ 00033
Generated on Thu Jul 14 2022 06:01:04 by
1.7.2