deadprogram
472856310a
i2c: refactor i2c interface definitions out of sysfs into i2c package
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-07-12 09:00:35 -06:00
deadprogram
a21abad5a9
sysfs: minor type corrections and increase test coverage
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-09 09:15:09 +02:00
Erik Agsjö
ea93b203bd
Added more capabilities checks for I2C
...
Signed-off-by: Erik Agsjö <erik.agsjo@gmail.com>
2017-02-27 23:40:14 +01:00
Erik Agsjö
f0873adea6
Removed smbus block operations
...
Signed-off-by: Erik Agsjö <erik.agsjo@gmail.com>
2017-02-27 20:53:01 +01:00
Erik Agsjö
543a246916
Updated all i2c drivers to new interface
...
Signed-off-by: Erik Agsjö <erik.agsjo@gmail.com>
Fixed I2C interface bugs
Signed-off-by: Erik Agsjö <erik.agsjo@gmail.com>
2017-02-06 15:06:00 +01:00
Erik Agsjö
0626b3b3a2
Added word sized i2c write operation
...
Signed-off-by: Erik Agsjö <erik.agsjo@gmail.com>
2017-02-06 14:57:36 +01:00
Erik Agsjö
f41021c17a
Change to make I2C support more than one bus, and use
...
other access methods than block operations.
Signed-off-by: Erik Agsjö <erik.agsjo@gmail.com>
Added ReadWordData to i2c connection
Signed-off-by: Erik Agsjö <erik.agsjo@gmail.com>
Code cleanup
2017-02-06 14:57:19 +01:00
deadprogram
fa9f6aefc3
sysfs: some additional cleanup suggested by golint
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-02 19:32:04 +01:00
deadprogram
c432f50ae0
sysfs: Should fix #272 by using first byte of data as command register for I2C reads
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-02 15:13:22 +01:00
Ron Evans
5442e0bd8b
Merge pull request #308 from jfinken/dev
...
Adafruit Motor HAT driver support
2016-09-17 01:34:05 +02:00
Erich Cordoba
5d156f9a6c
Remove debug message from i2c_device.go
...
Signed-off-by: Erich Cordoba <erich.cm@yandex.com>
2016-09-03 23:21:03 -05:00
Josh Finken
c3f142f4d7
Initial commit of driver code, with accompanying example, for the Adafruit_MotorHat.
2016-08-01 19:08:54 -06:00
Hrishikesh Tapaswi
42475e479d
Get I2C functionality before doing SMBus block I/O
...
In the sysfs i2cDevice implementation, use an ioctl to get the adapter
functionality mask. Prefer SMBus block I/O but if it's not available,
perform read/write calls directly on the file descriptor.
Improve Wiichuck error handling. Add a 1 ms delay between I/O operations
to the Wiichuck; this dramatically improves reliability.
Signed-off-by: Hrishikesh Tapaswi <hrishikesh195@yahoo.com>
2016-02-17 12:25:15 -08:00
Adrian Zankich
fe6df92974
Refactor sysfs I2C implementation and add Address parameter to I2C interface functions
2015-07-03 18:57:29 -07:00
Adrian Zankich
22b84cc6ef
go lint and documentation tweaks for the sysfs package
2014-12-31 06:12:25 -08:00
Adrian Zankich
ece9aa16f9
Add syscall mock
2014-11-07 16:56:13 -08:00
Adrian Zankich
a0bcef77fe
Refactor sysfs to use internal fs
2014-11-07 16:21:39 -08:00
Adrian Zankich
e78257c201
Add docs
2014-10-30 16:22:25 -07:00
Adrian Zankich
72bd6961e0
WIP switching linux sysfs io to shared package
2014-10-29 17:51:47 -07:00