KXCJK1013 Class
- ID: kxcjk1013
- Name: Tri-axis Digital Accelerometer
- Category: accelerometer
- Manufacturer: kionix
- Connection: iio i2c
- Link: http://kionixfs.kionix.com/en/datasheet/KXCJK-1013%20Specifications%20Rev%202.pdf
The KXCJK is a tri-axis +/-2g, +/-4g or +/-8g silicon micromachined accelerometer.
Item Index
Methods
KXCJK1013
-
device
KXCJK1013 Tri-axis Digital Accelerometer
Parameters:
-
device
Numberiio device number
Returns:
installISR
-
isr
-
arg
Installs an interrupt service routine (ISR) to be called when an interrupt occurs
Parameters:
-
isr
Void()(char *, void *)Pointer to a function to be called on interrupt
-
arg
Void *Pointer to an object to be supplied as an argument to the ISR.
getChannelValue
-
input
-
chan
Extract the channel value based on channel type
Parameters:
-
input
StringChannel data
-
chan
Mraa_iio_channel *MRAA iio-layer channel info
Returns:
enableBuffer
-
length
Enable trigger buffer
Parameters:
-
length
Numberbuffer length in integer
Returns:
disableBuffer
()
Boolean
Disable trigger buffer
Returns:
setScale
-
scale
Set scale
Parameters:
-
scale
Numberin float Available scales are 0.009582(2g), 0.019163(4g), and 0.038326(8g) Default scale is 0.019163
Returns:
setSamplingFrequency
-
sampling_frequency
Set sampling frequency
Parameters:
-
sampling_frequency
Numbersampling frequency in float Available sampling frequency are 0.781000, 1.563000, 3.125000, 6.250000, 12.500000, 25, 50, 100, 200, 400, 800, and 1600 Default sampling frequency is 25
Returns:
enable3AxisChannel
()
Boolean
Enable 3 axis scan element
Returns:
extract3Axis
-
data
-
x
-
y
-
z
Process enabled channel buffer and return x, y, z axis
Parameters:
-
data
StringEnabled channel data, 6 bytes, each axis 2 bytes
-
x
Float *X-Axis
-
y
Float *Y-Axis
-
z
Float *Z-Axis