Accelerometer / Magnetometer with advanced motion detection capabilities and tap gesture detection

class FXOS8700CQR1.FXOS8700CQR1[source]

Bases: object

Representation of an FXOS8700CQ accelerometer/ magnetometer object.

FIFOMode(mode)[source]

Put the sensor in FIFO mode.

Parameters:none
Returns:none
activeMode()[source]

Put the chip in Active mode.

Parameters:none
Returns:none
configureAccelerometer()[source]

Configure the Accelerometer with default settings +/- 2g.

Parameters:none
Returns:none
configureMagnetometer()[source]

Configure the magnetometer with default settigs.

Parameters:none
Returns:none
configureOrientation()[source]

Configure Orientation mode.

Parameters:none
Returns:none
fullScaleRange(range)[source]

Configure full scale range.

Parameters:none
Returns:none
getChipMode()[source]

Get the current mode of the chip.

Parameters:none
Returns:none
getHeading()[source]

Get magnetometer heading .

Parameters:none
Returns:magnetometer heading
getID()[source]

Read the chip ID.

Parameters:none
Returns:chip id
getODR()[source]

Get the output data rate .

Parameters:none
Returns:none
getOrientation()[source]

Returns current orientation of the sensor.

Parameters:none
Returns:current orientation of the Sensorian
getTemperature()[source]

Reads the sensor temperature.

Parameters:none
Returns:none
highPassFilter(status)[source]

Enable the highpass filter.

Parameters:none
Returns:none
hybridMode()[source]

Configure the chip in hybrid mode with default settigs 50 Hz ouput data rate.

Parameters:none
Returns:none
magnetometerStatus()[source]

Configure the accelerometer status.

Parameters:none
Returns:none
pollAccelerometer()[source]

Get accelerometer data , these are left justified.

Parameters:none
Returns:acceleration data (ax, ay, az)
pollMagnetometer()[source]

Reads the magnetometer data.

Parameters:none
Returns:magnetometer data (mx, my, mz)
readByte(address, reg)[source]

Read a data byte from the given register.

Parameters:
  • address – Sensor address
  • reg – Register address
Returns:

none

readStatusReg()[source]

Read contents of status register.

Parameters:none
Returns:none
setAccelerometerDynamicRange(range)[source]

Configure the sensor accelerometer dynamic range.

Parameters:range – Accelerometer dynamic range
Returns:none
setODR(DataRateValue)[source]

Set the output data rate.

Parameters:DataRateValue – Output data rate
Returns:none
standbyMode()[source]

Put the chip in Standby mode.

Parameters:none
Returns:none
writeByte(address, reg, value)[source]

Write a data byte on the given register.

Parameters:
  • address – Sensor address
  • reg – Register address
  • value – Register value
Returns:

none

Previous topic

Orange LED

Next topic

NOR Flash Memory 2Mbit

This Page