brianfoshee / aquaponics-data

0 stars 0 forks source link

Rewrite firmware for I2C #34

Closed nathanprayzo closed 9 years ago

brianfoshee commented 9 years ago

Found this to be a pretty interesting read. Straight from the linux kernel source. Explains the syscall at the bottom of the i2c go package we're using.

https://github.com/torvalds/linux/blob/master/Documentation/i2c/dev-interface

Edit: The relevant headerfile too. Explains some of the constants, like I2C_SLAVE. The comments next to it suggest that we can hold multiple, simultaneous, connections to the I2C device - one for each slave.

https://github.com/torvalds/linux/blob/4f671fe2f9523a1ea206f63fe60a7c7b3a56d5c7/include/uapi/linux/i2c-dev.h