upm  1.6.0
Sensor/Actuator repository for libmraa (v1.9.0)
Classes | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
MPU60X0 Class Reference

Classes

class  ACCEL_CONFIG_BITS_T
 
class  ACCEL_ON_DELAY_T
 
class  AFS_SEL_T
 
class  CLKSEL_T
 
class  CONFIG_BITS_T
 
class  DLPF_CFG_T
 
class  EXT_SYNC_SET_T
 
class  FIFO_EN_BITS_T
 
class  FS_SEL_T
 
class  GRYO_CONFIG_BITS_T
 
class  I2C_MST_CLK_T
 
class  I2C_MST_CTRL_BITS_T
 
class  I2C_MST_STATUS_BITS_T
 
class  I2C_SLV4_CTRL_BITS_T
 
class  I2C_SLV_ADDR_BITS_T
 
class  I2C_SLV_CTRL_BITS_T
 
class  INT_ENABLE_BITS_T
 
class  INT_PIN_CFG_BITS_T
 
class  INT_STATUS_BITS_T
 
class  LP_WAKE_CRTL_T
 
class  MOT_DETECT_CTRL_BITS_T
 
class  MOT_DETECT_STATUS_BITS_T
 
class  MOT_FF_COUNT_T
 
class  MPU60X0_REG_T
 
class  MST_DELAY_CTRL_BITS_T
 
class  PWR_MGMT_1_BITS_T
 
class  PWR_MGMT_2_BITS_T
 
class  SIGNAL_PATH_RESET_BITS_T
 
class  USER_CTRL_BITS_T
 

Public Member Functions

synchronized void delete ()
 
 MPU60X0 (int bus, short address)
 
 MPU60X0 (int bus)
 
boolean init ()
 
void update ()
 
short readReg (short reg)
 
void readRegs (short reg, byte[] buffer)
 
boolean writeReg (short reg, short val)
 
boolean setSleep (boolean enable)
 
boolean setClockSource (MPU60X0.CLKSEL_T clk)
 
boolean setGyroscopeScale (MPU60X0.FS_SEL_T scale)
 
boolean setAccelerometerScale (MPU60X0.AFS_SEL_T scale)
 
boolean setDigitalLowPassFilter (MPU60X0.DLPF_CFG_T dlp)
 
boolean setSampleRateDivider (short div)
 
short getSampleRateDivider ()
 
void getAccelerometer (SWIGTYPE_p_float x, SWIGTYPE_p_float y, SWIGTYPE_p_float z)
 
void getGyroscope (SWIGTYPE_p_float x, SWIGTYPE_p_float y, SWIGTYPE_p_float z)
 
float getTemperature ()
 
boolean enableTemperatureSensor (boolean enable)
 
boolean setExternalSync (MPU60X0.EXT_SYNC_SET_T val)
 
boolean enableI2CBypass (boolean enable)
 
boolean setMotionDetectionThreshold (short thr)
 
short getInterruptStatus ()
 
boolean setInterruptEnables (short enables)
 
short getInterruptEnables ()
 
boolean setInterruptPinConfig (short cfg)
 
short getInterruptPinConfig ()
 
void installISR (int gpio, int level, SWIGTYPE_p_f_p_void__void isr, SWIGTYPE_p_void arg)
 
void uninstallISR ()
 
SWIGTYPE_p_mraa__Gpio get_gpioIRQ ()
 
void installISR (int gpio, int level, java.lang.Runnable runnable)
 

Protected Member Functions

 MPU60X0 (long cPtr, boolean cMemoryOwn)
 
void finalize ()
 

Static Protected Member Functions

static long getCPtr (MPU60X0 obj)
 

Protected Attributes

transient boolean swigCMemOwn
 
Inheritance diagram for MPU60X0:
Inheritance graph
[legend]

The documentation for this class was generated from the following file: