Documentation ¶
Index ¶
Constants ¶
View Source
const ( // as defined in /usr/include/linux/i2c-dev.h I2C_SLAVE = 0x0703 I2C_SMBUS = 0x0720 // as defined in /usr/include/linux/i2c.h I2C_SMBUS_WRITE = 0 I2C_SMBUS_READ = 1 I2C_SMBUS_I2C_BLOCK_DATA = 8 I2C_SMBUS_BLOCK_MAX = 32 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type I2CBus ¶
type I2CBus struct {
// contains filtered or unexported fields
}
func Bus ¶
Returns an instance to an I2CBus. If we already have an I2CBus created for the requested bus number, just return that, otherwise set up a new one and open up its associated i2c-dev file
func (*I2CBus) ReadByteBlock ¶
Click to show internal directories.
Click to hide internal directories.