#ifndef __P_I2C_H__ #define __P_I2C_H__ #include "driver_init.h" extern struct i2c_m_sync_desc p_i2c_master; void p_i2c_init(void); int p_i2c_write(const uint8_t* const data, uint16_t data_len); int p_i2c_read(uint8_t* data, uint16_t len); void p_i2c_scan(void); #endif