///Copyright (c) 2022, 四川汇源光通信有限公司 ///All rights reserved. ///@file mb85rc64.h ///@brief mb85rc64驱动程序 /// ///@details ///@note ///@author lqc ///@date 2022/05/26 /// ///@version v1.0 2022/05/26 初始版本 #ifndef __MB85RC64_H_ #define __MB85RC64_H_ #include "gd32f4xx_gpio.h" #include "drv_i2c.h" #include "stdbool.h" #define MB85RC64_ADDRESS 0x50 #define PAGE_WRITE 1 #define ADDR_READ 0 #ifdef SOFTWARE_I2C #define MB85RC64_SCL_HIGH I2C_SCL_HIGH #define MB85RC64_SCL_LOW I2C_SCL_LOW #define MB85RC64_SDA_HIGH I2C_SDA_HIGH #define MB85RC64_SDA_LOW I2C_SDA_LOW #define MB85RC64_SDA_GET I2C_SDA_GET #endif bool mb85rc64_write_read(unsigned short int addr, unsigned char* data, int data_len, bool statues); #endif