newPtz/drivers/mb85rc64/mb85rc64.h

39 lines
802 B
C
Raw Normal View History

///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"
#define MB85RC64_ADDRESS 0x50
2025-09-26 10:17:39 +00:00
#define PAGE_WRITE 1
#define ADDR_READ 0
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-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-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);
#endif