2025-09-15 09:03:37 +00:00
|
|
|
|
///Copyright (c) 2022, <20>Ĵ<EFBFBD><C4B4><EFBFBD>Դ<EFBFBD><D4B4>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˾
|
|
|
|
|
///All rights reserved.
|
|
|
|
|
///@file mb85rc64.h
|
|
|
|
|
///@brief mb85rc64<36><34><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
///
|
|
|
|
|
///@details
|
|
|
|
|
///@note
|
|
|
|
|
///@author lqc
|
|
|
|
|
///@date 2022/05/26
|
|
|
|
|
///
|
|
|
|
|
///@version v1.0 2022/05/26 <20><>ʼ<EFBFBD>汾
|
|
|
|
|
|
|
|
|
|
#ifndef __MB85RC64_H_
|
|
|
|
|
#define __MB85RC64_H_
|
|
|
|
|
|
|
|
|
|
#include "gd32f4xx_gpio.h"
|
2025-09-26 10:17:39 +00:00
|
|
|
|
#include "drv_i2c.h"
|
|
|
|
|
#include "stdbool.h"
|
|
|
|
|
|
2025-09-25 10:05:11 +00:00
|
|
|
|
#define MB85RC64_ADDRESS 0x50
|
|
|
|
|
|
2025-09-26 10:17:39 +00:00
|
|
|
|
#define PAGE_WRITE 1
|
|
|
|
|
#define ADDR_READ 0
|
2025-09-25 10:05:11 +00:00
|
|
|
|
|
2025-09-29 09:41:58 +00:00
|
|
|
|
|
|
|
|
|
#ifdef SOFTWARE_I2C
|
2025-09-24 09:50:50 +00:00
|
|
|
|
|
2025-09-26 10:17:39 +00:00
|
|
|
|
#define MB85RC64_SCL_HIGH I2C_SCL_HIGH
|
|
|
|
|
#define MB85RC64_SCL_LOW I2C_SCL_LOW
|
2025-09-15 09:03:37 +00:00
|
|
|
|
|
2025-09-26 10:17:39 +00:00
|
|
|
|
#define MB85RC64_SDA_HIGH I2C_SDA_HIGH
|
|
|
|
|
#define MB85RC64_SDA_LOW I2C_SDA_LOW
|
|
|
|
|
#define MB85RC64_SDA_GET I2C_SDA_GET
|
2025-09-15 09:03:37 +00:00
|
|
|
|
|
2025-09-26 10:17:39 +00:00
|
|
|
|
#endif
|
|
|
|
|
|
2025-09-29 09:41:58 +00:00
|
|
|
|
bool mb85rc64_write_read(unsigned short int addr, unsigned char* data, int data_len, bool statues);
|
|
|
|
|
|
2025-09-15 09:03:37 +00:00
|
|
|
|
#endif
|