MCPcopy Create free account
hub / github.com/WiringPi/WiringPi / wiringPiI2CRead

Function wiringPiI2CRead

wiringPi/wiringPiI2C.c:120–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118 */
119
120int wiringPiI2CRead (int fd)
121{
122 union i2c_smbus_data data ;
123
124 if (i2c_smbus_access (fd, I2C_SMBUS_READ, 0, I2C_SMBUS_BYTE, &data))
125 return -1 ;
126 else
127 return data.byte & 0xFF ;
128}
129
130
131/*

Callers 4

myAnalogReadFunction · 0.85
myDigitalReadFunction · 0.85
pcf8574SetupFunction · 0.85
testPinFunction · 0.85

Calls 1

i2c_smbus_accessFunction · 0.85

Tested by 1

testPinFunction · 0.68