doc/syscalls/70006_lsm303dlhc.md
Three axis accelerometer, magnetometer and temperature sensor.
0Description: Existence check.
Argument 1: unused
Argument 2: unused
Returns: Success
1Description: Performs a test read/write to verify that the hardware sensor is present.
Argument 1: unused
Argument 2: unused
Returns: Ok(()) if presence test has started successfully, BUSY otherwise.
2Description: Set Accelerometer Power Mode.
Argument 1: Accelerometer Data rate defined in manual table 20, page 25
Argument 2: Low power mode (1 on, 0 off)
Returns: Ok(()) if there is no other command in progress, BUSY otherwise.
3Description: Set Accelerometer Scale and Resolution.
Argument 1: Accelerometer scale defined in manual table 27, page 27
Argument 2: High resolution (1 on, 0 off)
Returns: Ok(()) if there is no other command in progress, BUSY otherwise.
4Description: Set Magnetometer Temperature Enable and Data Rate.
Argument 1: Temperature enable (1 on, 0 off)
Argument 2: Magnetometer Data rate defined in manual table 72, page 37
Returns: Ok(()) if there is no other command in progress, BUSY otherwise.
5Description: Set magnetometer range.
Argument 1: Magnetometer range defined in manual table 75, page 38
Argument 2: unused
Returns: Ok(()) if there is no other command in progress, BUSY otherwise.
6Description: Reads Acceleration X, Y and Z
Argument 1: unused
Argument 2: unused
Returns: Ok(()) if there is no other command in progress, BUSY otherwise.
7Description: Reads the temperature
Argument 1: unused
Argument 2: unused
Returns: Ok(()) if there is no other command in progress, BUSY otherwise.
8Description: Reads Magnetometer X, Y and Z
Argument 1: unused
Argument 2: unused
Returns: Ok(()) if there is no other command in progress, BUSY otherwise.
All the commands return a callback when done.
0Description: Called when commands are done
Argument 1:
Argument 2:
Argument 3:
Unused for the LSM303DLHC driver. Will always return ENOSUPPORT.