2018-07-17 04:58:26 +00:00
|
|
|
#ifndef RPI_I2C_H
|
|
|
|
#define RPI_I2C_H
|
2018-06-03 08:11:58 +00:00
|
|
|
|
|
|
|
#include "rpi-base.h"
|
|
|
|
|
|
|
|
extern void RPI_I2CInit(int BSCMaster, int fast);
|
|
|
|
extern void RPI_I2CSetClock(int BSCMaster, int clock_freq);
|
|
|
|
extern int RPI_I2CRead(int BSCMaster, unsigned char slaveAddress, void* buffer, unsigned count);
|
|
|
|
extern int RPI_I2CWrite(int BSCMaster, unsigned char slaveAddress, void* buffer, unsigned count);
|
2018-07-17 04:58:26 +00:00
|
|
|
extern int RPI_I2CScan(int BSCMaster, unsigned char slaveAddress);
|
2018-06-03 08:11:58 +00:00
|
|
|
|
|
|
|
#endif
|