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