gyro2 2.0.0.0

Topics

 Reg
 
 End bits
 
 Types
 
 Public function
 

Macros

#define GYRO2_DR_800Hz   0
 
#define GYRO2_DR_400Hz   1
 
#define GYRO2_DR_200Hz   2
 
#define GYRO2_DR_100Hz   3
 
#define GYRO2_DR_50Hz   4
 
#define GYRO2_DR_25Hz   5
 
#define GYRO2_DR_12_5Hz   6
 
#define GYRO2_STANDBY   0
 
#define GYRO2_READY   1
 
#define GYRO2_ACTIVE   3
 
#define GYRO2_INT_CFG_FIFO_INT1   0x80
 
#define GYRO2_INT_CFG_FIFO_INT2   0x00
 
#define GYRO2_INT_EN_FIFO   0x40
 
#define GYRO2_INT_DIS_FIFO   0x00
 
#define GYRO2_INT_CFG_RT_INT1   0x20
 
#define GYRO2_INT_CFG_RT_INT2   0x00
 
#define GYRO2_INT_EN_RT   0x10
 
#define GYRO2_DIS_EN_RT   0x00
 
#define GYRO2_INT_CFG_DRDY_INT1   0x08
 
#define GYRO2_INT_CFG_DRDY_INT2   0x00
 
#define GYRO2_INT_EN_DRDY   0x04
 
#define GYRO2_INT_DIS_DRDY   0x00
 
#define GYRO2_IPOL_ACTIVE_HI   0x02
 
#define GYRO2_IPOL_ACTIVE_LO   0x00
 
#define GYRO2_PP_OD_OS   0x01
 
#define GYRO2_PP_OD_PUSH_PULL   0x00
 

Variables

uint8_t tmp_ctrl_reg0
 
uint8_t tmp_ctrl_reg1
 
uint8_t tmp_ctrl_reg2
 
uint8_t tmp_ctrl_reg3
 
digital_out_t scs
 
digital_out_t rst
 
digital_out_t rdy_pin
 
digital_out_t cs
 
digital_in_t rdy
 
digital_in_t int_pin
 
i2c_master_t i2c
 
uint8_t slave_address
 
ctrl_reg_t tmp_ctrl_reg
 
pin_name_t scl
 
pin_name_t sda
 
pin_name_t cs
 
pin_name_t scs
 
pin_name_t rst
 
pin_name_t rdy
 
pin_name_t int_pin
 
pin_name_t rdy_pin
 
uint32_t i2c_speed
 
uint8_t i2c_address
 

Detailed Description

Macro Definition Documentation

◆ GYRO2_ACTIVE

#define GYRO2_ACTIVE   3

◆ GYRO2_DIS_EN_RT

#define GYRO2_DIS_EN_RT   0x00

◆ GYRO2_DR_100Hz

#define GYRO2_DR_100Hz   3

◆ GYRO2_DR_12_5Hz

#define GYRO2_DR_12_5Hz   6

◆ GYRO2_DR_200Hz

#define GYRO2_DR_200Hz   2

◆ GYRO2_DR_25Hz

#define GYRO2_DR_25Hz   5

◆ GYRO2_DR_400Hz

#define GYRO2_DR_400Hz   1

◆ GYRO2_DR_50Hz

#define GYRO2_DR_50Hz   4

◆ GYRO2_DR_800Hz

#define GYRO2_DR_800Hz   0

◆ GYRO2_INT_CFG_DRDY_INT1

#define GYRO2_INT_CFG_DRDY_INT1   0x08

◆ GYRO2_INT_CFG_DRDY_INT2

#define GYRO2_INT_CFG_DRDY_INT2   0x00

◆ GYRO2_INT_CFG_FIFO_INT1

#define GYRO2_INT_CFG_FIFO_INT1   0x80

◆ GYRO2_INT_CFG_FIFO_INT2

#define GYRO2_INT_CFG_FIFO_INT2   0x00

◆ GYRO2_INT_CFG_RT_INT1

#define GYRO2_INT_CFG_RT_INT1   0x20

◆ GYRO2_INT_CFG_RT_INT2

#define GYRO2_INT_CFG_RT_INT2   0x00

◆ GYRO2_INT_DIS_DRDY

#define GYRO2_INT_DIS_DRDY   0x00

◆ GYRO2_INT_DIS_FIFO

#define GYRO2_INT_DIS_FIFO   0x00

◆ GYRO2_INT_EN_DRDY

#define GYRO2_INT_EN_DRDY   0x04

◆ GYRO2_INT_EN_FIFO

#define GYRO2_INT_EN_FIFO   0x40

◆ GYRO2_INT_EN_RT

#define GYRO2_INT_EN_RT   0x10

◆ GYRO2_IPOL_ACTIVE_HI

#define GYRO2_IPOL_ACTIVE_HI   0x02

◆ GYRO2_IPOL_ACTIVE_LO

#define GYRO2_IPOL_ACTIVE_LO   0x00

◆ GYRO2_PP_OD_OS

#define GYRO2_PP_OD_OS   0x01

◆ GYRO2_PP_OD_PUSH_PULL

#define GYRO2_PP_OD_PUSH_PULL   0x00

◆ GYRO2_READY

#define GYRO2_READY   1

◆ GYRO2_STANDBY

#define GYRO2_STANDBY   0

Variable Documentation

◆ cs [1/2]

digital_out_t cs

◆ cs [2/2]

pin_name_t cs

◆ i2c

i2c_master_t i2c

◆ i2c_address

uint8_t i2c_address

◆ i2c_speed

uint32_t i2c_speed

◆ int_pin [1/2]

digital_in_t int_pin

◆ int_pin [2/2]

pin_name_t int_pin

◆ rdy [1/2]

digital_in_t rdy

◆ rdy [2/2]

pin_name_t rdy

◆ rdy_pin [1/2]

digital_out_t rdy_pin

◆ rdy_pin [2/2]

pin_name_t rdy_pin

◆ rst [1/2]

digital_out_t rst

◆ rst [2/2]

pin_name_t rst

◆ scl

pin_name_t scl

◆ scs [1/2]

digital_out_t scs

◆ scs [2/2]

pin_name_t scs

◆ sda

pin_name_t sda

◆ slave_address

uint8_t slave_address

◆ tmp_ctrl_reg

ctrl_reg_t tmp_ctrl_reg

◆ tmp_ctrl_reg0

uint8_t tmp_ctrl_reg0

◆ tmp_ctrl_reg1

uint8_t tmp_ctrl_reg1

◆ tmp_ctrl_reg2

uint8_t tmp_ctrl_reg2

◆ tmp_ctrl_reg3

uint8_t tmp_ctrl_reg3