wda2945
f2c4d95c15
i2c: Improve i2c Error Handling
...
Edited syslog messages. Changed some return types to used signed and using -1
to indicate errors
Signed-off-by: Martin G Lane-Smith <mlanesmith@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-04-15 13:46:25 +01:00
Brendan Le Foll
41d71e6ce2
i2c.h: Fix docs that incorectly states -1 is failure
...
Fixes #228
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-06-20 20:41:44 +01:00
Brendan Le Foll
1c4be07aac
i2c: fix return value doc for _read_bytes_data
...
Closes #218
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-06-09 08:25:41 +01:00
Brendan Le Foll
ffcf3d7d07
clang-format: run clang-format on C/C++ code
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-03-23 15:15:48 +00:00
Gabriel Smith
caf1383325
i2c: Add functions for bulk read from register
...
Functions issue a write command for the register to read from and then a read
command without a stop signal in between
Signed-off-by: Gabriel Smith <ga29smith@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-03-03 16:26:57 +00:00
Brendan Le Foll
fc5d37d391
i2c: set_frequency now takes a mraa_i2c_mode_t
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-01-05 14:38:48 +00:00
Brendan Le Foll
d99bfa45a3
i2c.h: fix typo in doxygen comment
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-24 08:04:08 +00:00
Brendan Le Foll
19d7dad364
i2c: remove smbus helper library & clean up command use in API
...
This commit changes the mraa_i2c_read() API call behaviour, a register should
now always be set when using this call. The smbus helper library is no longer
required since the code is now all contained from i2c.c which avoids multiple
function calls
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-20 12:03:31 +00:00
Brendan Le Foll
ac1c60d4fe
i2c: add clean {write, read}data functions
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-20 12:03:31 +00:00
Brendan Le Foll
274d5b2d50
i2c: use uint8_t when appropriate and remove char
...
Object APIs used signed chars for some operations which are not appropriate
when using i2c.
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-05 11:25:38 +00:00
Anton Krasovsky
cbf4c7447f
i2c: add api call to read byte from a specified register
...
Signed-off-by: Anton Krasovsky <anton@no-mad.net >
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-10-31 01:17:17 +00:00
Brendan Le Foll
d49f20b7ba
i2c: mraa_i2c_frequency now returns correct returns
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-10-20 10:01:53 +01:00
Brendan Le Foll
2687e5a7c4
docs: add common i2c doc page i2c.txt
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-09-07 21:20:06 +01:00
Thomas Ingleby
6853997a92
mraa: rename from maa to mraa
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-06-24 17:24:54 +01:00