dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages

Hardware functions to deal with the 6DOF gyro / accel sensor. More...

Files

file  pios_bmi160.c
 BMI160 Gyro / Accel Sensor Routines.
 
file  pios_bmi160.c
 BMI160 Gyro / Accel Sensor Routines.
 

Data Structures

struct  pios_bmi160_cfg
 

Enumerations

enum  pios_bmi160_orientation {
  PIOS_BMI160_TOP_0DEG, PIOS_BMI160_TOP_90DEG, PIOS_BMI160_TOP_180DEG, PIOS_BMI160_TOP_270DEG,
  PIOS_BMI160_BOTTOM_0DEG, PIOS_BMI160_BOTTOM_90DEG, PIOS_BMI160_BOTTOM_180DEG, PIOS_BMI160_BOTTOM_270DEG
}
 
enum  pios_bmi160_odr { PIOS_BMI160_ODR_800_Hz = 0x0B, PIOS_BMI160_ODR_1600_Hz = 0x0C }
 
enum  pios_bmi160_acc_range { PIOS_BMI160_RANGE_2G = 0x03, PIOS_BMI160_RANGE_4G = 0x05, PIOS_BMI160_RANGE_8G = 0x08, PIOS_BMI160_RANGE_16G = 0x0C }
 
enum  pios_bmi160_gyro_range {
  PIOS_BMI160_RANGE_125DPS = 0x04, PIOS_BMI160_RANGE_250DPS = 0x03, PIOS_BMI160_RANGE_500DPS = 0x02, PIOS_BMI160_RANGE_1000DPS = 0x01,
  PIOS_BMI160_RANGE_2000DPS = 0x00
}
 

Functions

int32_t PIOS_BMI160_Init (pios_spi_t spi_id, uint32_t slave_num, const struct pios_bmi160_cfg *cfg, bool do_foc)
 
bool PIOS_BMI160_IRQHandler (void)
 

Variables

const struct pios_exti_cfgpios_bmi160_cfg::exti_cfg
 
enum pios_bmi160_orientation pios_bmi160_cfg::orientation
 
enum pios_bmi160_odr pios_bmi160_cfg::odr
 
enum pios_bmi160_acc_range pios_bmi160_cfg::acc_range
 
enum pios_bmi160_gyro_range pios_bmi160_cfg::gyro_range
 
uint8_t pios_bmi160_cfg::temperature_interleaving
 

Detailed Description

Hardware functions to deal with the 6DOF gyro / accel sensor.

Enumeration Type Documentation

Enumerator
PIOS_BMI160_RANGE_2G 
PIOS_BMI160_RANGE_4G 
PIOS_BMI160_RANGE_8G 
PIOS_BMI160_RANGE_16G 

Definition at line 54 of file pios_bmi160.h.

Enumerator
PIOS_BMI160_RANGE_125DPS 
PIOS_BMI160_RANGE_250DPS 
PIOS_BMI160_RANGE_500DPS 
PIOS_BMI160_RANGE_1000DPS 
PIOS_BMI160_RANGE_2000DPS 

Definition at line 61 of file pios_bmi160.h.

Enumerator
PIOS_BMI160_ODR_800_Hz 
PIOS_BMI160_ODR_1600_Hz 

Definition at line 49 of file pios_bmi160.h.

Enumerator
PIOS_BMI160_TOP_0DEG 
PIOS_BMI160_TOP_90DEG 
PIOS_BMI160_TOP_180DEG 
PIOS_BMI160_TOP_270DEG 
PIOS_BMI160_BOTTOM_0DEG 
PIOS_BMI160_BOTTOM_90DEG 
PIOS_BMI160_BOTTOM_180DEG 
PIOS_BMI160_BOTTOM_270DEG 

Definition at line 38 of file pios_bmi160.h.

Function Documentation

int32_t PIOS_BMI160_Init ( pios_spi_t  spi_id,
uint32_t  slave_num,
const struct pios_bmi160_cfg cfg,
bool  do_foc 
)
bool PIOS_BMI160_IRQHandler ( void  )

Variable Documentation

enum pios_bmi160_acc_range pios_bmi160_cfg::acc_range

Definition at line 73 of file pios_bmi160.h.

const struct pios_exti_cfg* pios_bmi160_cfg::exti_cfg

Definition at line 70 of file pios_bmi160.h.

enum pios_bmi160_gyro_range pios_bmi160_cfg::gyro_range

Definition at line 74 of file pios_bmi160.h.

enum pios_bmi160_odr pios_bmi160_cfg::odr

Definition at line 72 of file pios_bmi160.h.

enum pios_bmi160_orientation pios_bmi160_cfg::orientation

Definition at line 71 of file pios_bmi160.h.

uint8_t pios_bmi160_cfg::temperature_interleaving

Definition at line 75 of file pios_bmi160.h.