You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
253 B
C
15 lines
253 B
C
3 years ago
|
#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);
|
||
|
#endif
|