Arduino Function: NaxisMotion.writeAccelConfig

Description

This function is used to write the accelerometer configurations

Syntax

void writeAccelConfig(uint8_t range, uint8_t bandwidth, uint8_t powerMode);

Parameters

uint8_t range: To assign the range of the accelerometer

  • ACCEL_RANGE_2G 0X00
  • ACCEL_RANGE_4G 0X01
  • ACCEL_RANGE_8G 0X02
  • ACCEL_RANGE_16G 0X03


uint8_t bandwidth: To assign the filter bandwidth of the accelerometer

  • ACCEL_BW_7_81HZ 0x00
  • ACCEL_BW_15_63HZ 0x01
  • ACCEL_BW_31_25HZ 0x02
  • ACCEL_BW_62_5HZ 0X03
  • ACCEL_BW_125HZ 0X04
  • ACCEL_BW_250HZ 0X05
  • ACCEL_BW_500HZ 0X06
  • ACCEL_BW_1000HZ 0X07


uint8_t powerMode: To assign the power mode of the accelerometer

  • ACCEL_NORMAL 0X00
  • ACCEL_SUSPEND 0X01
  • ACCEL_LOWPOWER_1 0X02
  • ACCEL_STANDBY 0X03
  • ACCEL_LOWPOWER_2 0X04
  • ACCEL_DEEPSUSPEND 0X05


Based on the reference originally written by Arduino Community,  wiring.org.co and  arduino.cc