UPM

The UPM API is a high level sensor library for IoT devices using MRAA. See examples here. Back to index page.
SparkFun sensor images provided under CC BY-NC-SA-3.0.

ADIS16448 Class

Module: adis16448

This is an industrial-grade accelerometer by Analog Devices.

Methods

ADIS16448

(
  • bus
  • rst
)
Number

Constructor with configurable HW Reset

Parameters:

  • bus Number

    undefined

  • rst Number

    undefined

Returns:

Number:

resetDUT

()

Performs hardware reset by sending the specified pin low for 2 seconds

configSPI

()

Sets SPI frequency, mode, and bits/word

regRead

(
  • regAddr
)
Number

Reads a specified register and returns data

Parameters:

  • regAddr Number

    undefined

Returns:

Number:

regWrite

(
  • regAddr
  • regData
)

Writes to a specified register

Parameters:

  • regAddr Number

    undefined

  • regData Number

    undefined

accelScale

(
  • sensorData
)
Number

Scales accelerometer data

Parameters:

  • sensorData Number

    undefined

Returns:

Number:

gyroScale

(
  • sensorData
)
Number

Scales gyro data

Parameters:

  • sensorData Number

    undefined

Returns:

Number:

tempScale

(
  • sensorData
)
Number

Scales temperature data

Parameters:

  • sensorData Number

    undefined

Returns:

Number:

pressureScale

(
  • sensorData
)
Number

Scales pressure data

Parameters:

  • sensorData Number

    undefined

Returns:

Number:

magnetometerScale

(
  • sensorData
)
Number

Scales magnetometer data

Parameters:

  • sensorData Number

    undefined

Returns:

Number: