kxcjk1013: code cleanup and update sensor description

Code cleanup and proper close iio device in destructor.

KXCJK-1013 is tri-axis accelerometer from Kionix.
This sensor can measure acceleration in metre per second squared or in
G-forces.

The library provided is libupm-kxcjk1013.so.0.4.0.
The example provided is kxcjk1013-example where it will print x,y,z axis when
trigger buffer data is ready.

Signed-off-by: Lay, Kuan Loon <kuan.loon.lay@intel.com>
This commit is contained in:
Lay, Kuan Loon 2016-04-21 18:31:51 +08:00 committed by Noel Eck
parent 456bde0726
commit c3285ea523

View File

@ -30,6 +30,8 @@
#define NUMBER_OF_BITS_IN_BYTE 8
#define NUMBER_OF_BITS_IN_BYTE 8
using namespace upm;
KXCJK1013::KXCJK1013(int device)