#pragma once #include #include #include "sdk\components\zprotocols\zcancmder_v2\api\errorcode.hpp" namespace iflytop { using namespace std; typedef enum { kp24c16, km24lrxxe, } eeprom_type_t; class ZI_EEPROM { public: virtual ~ZI_EEPROM() {} public: /** * @brief * * @param add 4byte¶ÔÆë * @param val * @param len 4µÄ±¶Êý * @return int32_t */ virtual int32_t write(int32_t add, uint8_t* val, int32_t *len) = 0; virtual int32_t read(int32_t add, uint8_t* val, int32_t *len) = 0; virtual bool isOnline() = 0; }; } // namespace iflytop