i2c.hpp: reorder & style header

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
i2c: add clean {write, read}data functions

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
common.hpp: add missing docstring param for setLogLevel

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
spi.hpp: remove transfer command from SWIG APIs

Transfer command works with a uint8_t buffer that is written into, this does
not work in SWIG APIs and will cause a copy in either case, so the API call is
not useful. Remove to stop confusion.

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
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>