10 lines
365 B
C
10 lines
365 B
C
#ifndef I2C_BSP_H
|
|||
|
|
#define I2C_BSP_H
|
||
|
|
#include "driver/i2c.h"
|
||
|
|
|
||
|
|
|
||
|
|
void I2C_master_Init(void);
|
||
|
|
uint8_t I2C_writr_buff(uint8_t addr,uint8_t reg,uint8_t *buf,uint8_t len);
|
||
|
|
uint8_t I2C_read_buff(uint8_t addr,uint8_t reg,uint8_t *buf,uint8_t len);
|
||
|
|
uint8_t I2C_master_write_read_device(uint8_t addr,uint8_t *writeBuf,uint8_t writeLen,uint8_t *readBuf,uint8_t readLen);
|
||
|
|
#endif
|