MMC35240 Class
- ID: mmc35240
- Name: MMC35240 Tri-axis Magnetic Sensor
- Category: compass
- Manufacturer: Memsic
- Connection: iio i2c
The MMC3524xPJ is a complete 3-axis magnetic sensor
Item Index
Methods
MMC35240
-
device
MMC35240 Tri-axis Magnetic Sensor
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 Kernel driver does not support changing the value of scale on run-time Default scale is 0.001000
Returns:
setSamplingFrequency
-
sampling_frequency
Set sampling frequency
Parameters:
-
sampling_frequency
Numbersampling frequency in float Available sampling frequency are 1.5, 13, 25, 50 Default sampling frequency is 1.500000
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
getCalibratedLevel
()
Number
Get calibrated level
Returns:
initCalibrate
()
Reset calibration data and start collect calibration data again
getCalibratedData
-
cal_level
-
offset
-
w_invert
-
bfield
Get calibrated data
Parameters:
-
cal_level
Int *undefined
-
offset
Numberundefined
-
w_invert
Numberundefined
-
bfield
Double *undefined
loadCalibratedData
-
cal_level
-
offset
-
w_invert
-
bfield
Load calibrated data
Parameters:
-
cal_level
Numberundefined
-
offset
Numberundefined
-
w_invert
Numberundefined
-
bfield
Numberundefined