|
upm
0.4.1
Sensor/Actuator repository for libmraa (v0.8.0)
|
API for the Analog Devices ADIS16448 Accelerometer. More...
This is an industrial-grade accelerometer by Analog Devices.
Public Member Functions | |
| synchronized void | delete () |
| ADIS16448 (int bus, int rst) | |
| void | resetDUT () |
| void | configSPI () |
| short | regRead (short regAddr) |
| void | regWrite (short regAddr, int regData) |
| float | accelScale (short sensorData) |
| float | gyroScale (short sensorData) |
| float | tempScale (short sensorData) |
| float | pressureScale (short sensorData) |
| float | magnetometerScale (short sensorData) |
| ADIS16448 | ( | int | bus, |
| int | rst | ||
| ) |
Constructor with configurable HW Reset
| float accelScale | ( | short | sensorData | ) |
Scales accelerometer data
| void configSPI | ( | ) |
Sets SPI frequency, mode, and bits/word
| float gyroScale | ( | short | sensorData | ) |
Scales gyro data
| float magnetometerScale | ( | short | sensorData | ) |
Scales magnetometer data
| float pressureScale | ( | short | sensorData | ) |
Scales pressure data
| short regRead | ( | short | regAddr | ) |
Reads a specified register and returns data
| void regWrite | ( | short | regAddr, |
| int | regData | ||
| ) |
Writes to a specified register
| void resetDUT | ( | ) |
Performs hardware reset by sending the specified pin low for 2 seconds
| float tempScale | ( | short | sensorData | ) |
Scales temperature data
1.8.9.1