13 lines
266 B
C
13 lines
266 B
C
#ifndef __II2C_H__
|
|
#define __II2C_H__
|
|
|
|
#include "type.h"
|
|
|
|
|
|
extern uint8 i2c_write(int fd, uint8 reg, uint8 val);
|
|
extern uint8 i2c_read(int fd, uint8 reg, uint8 *pval);
|
|
extern int ii2c_com_init(const char*i2c_node_name,uint8 i2c_addr, int *pfd);
|
|
|
|
#endif//__II2C_H__
|
|
|