gyro9 2.1.0.0
Gyro 9 Registers Settings

Settings for registers of Gyro 9 Click driver. More...

Macros

#define GYRO9_WHO_AM_I   0xD3
 Gyro 9 device identification values.
 
#define GYRO9_ODR_100_HZ   0x00
 Gyro 9 output data rate selection.
 
#define GYRO9_ODR_200_HZ   0x01
 
#define GYRO9_ODR_400_HZ   0x02
 
#define GYRO9_ODR_800_HZ   0x03
 
#define GYRO9_ODR_BIT_MASK   0xC0
 
#define GYRO9_BW_0   0x00
 Gyro 9 bandwidth selection.
 
#define GYRO9_BW_1   0x01
 
#define GYRO9_BW_2   0x02
 
#define GYRO9_BW_3   0x03
 
#define GYRO9_BW_BIT_MASK   0x30
 
#define GYRO9_PD_POWER_DOWN   0x00
 Gyro 9 power mode selection.
 
#define GYRO9_PD_SLEEP   0x08
 
#define GYRO9_PD_NORMAL   0x0F
 
#define GYRO9_PD_BIT_MASK   0x08
 
#define GYRO9_FIFO_CTRL_BYPASS_MODE   0x00
 Gyro 9 power mode selection.
 
#define GYRO9_FIFO_CTRL_FIFO_MODE   0x01
 
#define GYRO9_FIFO_CTRL_STREAM_MODE   0x02
 
#define GYRO9_FIFO_CTRL_BIT_MASK   0xE0
 
#define GYRO9_CTRL_I1_INT1_EN   0x80
 Gyro 9 control register 3 data values.
 
#define GYRO9_CTRL_I1_INT1_DIS   0x00
 
#define GYRO9_CTRL_I1_BOOT_EN   0x40
 
#define GYRO9_CTRL_I1_BOOT_DIS   0x00
 
#define GYRO9_CTRL_H_LACTIVE_EN   0x20
 
#define GYRO9_CTRL_H_LACTIVE_DIS   0x00
 
#define GYRO9_CTRL_PP_OD_EN   0x10
 
#define GYRO9_CTRL_PP_OD_DIS   0x00
 
#define GYRO9_CTRL_I2_DRDY_EN   0x08
 
#define GYRO9_CTRL_I2_DRDY_DIS   0x00
 
#define GYRO9_CTRL_I2_WTM_EN   0x04
 
#define GYRO9_CTRL_I2_WTM_DIS   0x00
 
#define GYRO9_CTRL_I2_ORUN_EN   0x02
 
#define GYRO9_CTRL_I2_ORUN_DIS   0x00
 
#define GYRO9_CTRL_I2_EMPTY_EN   0x01
 
#define GYRO9_CTRL_I2_EMPTY_DIS   0x00
 
#define GYRO9_SENSITIVITY_DPS   0.00875f
 Gyro 9 device identification values.
 
#define GYRO9_DEVICE_ADDRESS_GND   0x68
 Gyro 9 device address setting.
 
#define GYRO9_DEVICE_ADDRESS_VCC   0x69
 
#define GYRO9_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define GYRO9_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of Gyro 9 Click driver.

Macro Definition Documentation

◆ GYRO9_BW_0

#define GYRO9_BW_0   0x00

Gyro 9 bandwidth selection.

Specified bandwidth selection of Gyro 9 Click driver.

◆ GYRO9_BW_1

#define GYRO9_BW_1   0x01

◆ GYRO9_BW_2

#define GYRO9_BW_2   0x02

◆ GYRO9_BW_3

#define GYRO9_BW_3   0x03

◆ GYRO9_BW_BIT_MASK

#define GYRO9_BW_BIT_MASK   0x30

◆ GYRO9_CTRL_H_LACTIVE_DIS

#define GYRO9_CTRL_H_LACTIVE_DIS   0x00

◆ GYRO9_CTRL_H_LACTIVE_EN

#define GYRO9_CTRL_H_LACTIVE_EN   0x20

◆ GYRO9_CTRL_I1_BOOT_DIS

#define GYRO9_CTRL_I1_BOOT_DIS   0x00

◆ GYRO9_CTRL_I1_BOOT_EN

#define GYRO9_CTRL_I1_BOOT_EN   0x40

◆ GYRO9_CTRL_I1_INT1_DIS

#define GYRO9_CTRL_I1_INT1_DIS   0x00

◆ GYRO9_CTRL_I1_INT1_EN

#define GYRO9_CTRL_I1_INT1_EN   0x80

Gyro 9 control register 3 data values.

Specified control register 3 data values of Gyro 9 Click driver.

◆ GYRO9_CTRL_I2_DRDY_DIS

#define GYRO9_CTRL_I2_DRDY_DIS   0x00

◆ GYRO9_CTRL_I2_DRDY_EN

#define GYRO9_CTRL_I2_DRDY_EN   0x08

◆ GYRO9_CTRL_I2_EMPTY_DIS

#define GYRO9_CTRL_I2_EMPTY_DIS   0x00

◆ GYRO9_CTRL_I2_EMPTY_EN

#define GYRO9_CTRL_I2_EMPTY_EN   0x01

◆ GYRO9_CTRL_I2_ORUN_DIS

#define GYRO9_CTRL_I2_ORUN_DIS   0x00

◆ GYRO9_CTRL_I2_ORUN_EN

#define GYRO9_CTRL_I2_ORUN_EN   0x02

◆ GYRO9_CTRL_I2_WTM_DIS

#define GYRO9_CTRL_I2_WTM_DIS   0x00

◆ GYRO9_CTRL_I2_WTM_EN

#define GYRO9_CTRL_I2_WTM_EN   0x04

◆ GYRO9_CTRL_PP_OD_DIS

#define GYRO9_CTRL_PP_OD_DIS   0x00

◆ GYRO9_CTRL_PP_OD_EN

#define GYRO9_CTRL_PP_OD_EN   0x10

◆ GYRO9_DEVICE_ADDRESS_GND

#define GYRO9_DEVICE_ADDRESS_GND   0x68

Gyro 9 device address setting.

Specified setting for device slave address selection of Gyro 9 Click driver.

◆ GYRO9_DEVICE_ADDRESS_VCC

#define GYRO9_DEVICE_ADDRESS_VCC   0x69

◆ GYRO9_FIFO_CTRL_BIT_MASK

#define GYRO9_FIFO_CTRL_BIT_MASK   0xE0

◆ GYRO9_FIFO_CTRL_BYPASS_MODE

#define GYRO9_FIFO_CTRL_BYPASS_MODE   0x00

Gyro 9 power mode selection.

Specified power mode selection of Gyro 9 Click driver.

◆ GYRO9_FIFO_CTRL_FIFO_MODE

#define GYRO9_FIFO_CTRL_FIFO_MODE   0x01

◆ GYRO9_FIFO_CTRL_STREAM_MODE

#define GYRO9_FIFO_CTRL_STREAM_MODE   0x02

◆ GYRO9_ODR_100_HZ

#define GYRO9_ODR_100_HZ   0x00

Gyro 9 output data rate selection.

Specified output data rate selection of Gyro 9 Click driver.

◆ GYRO9_ODR_200_HZ

#define GYRO9_ODR_200_HZ   0x01

◆ GYRO9_ODR_400_HZ

#define GYRO9_ODR_400_HZ   0x02

◆ GYRO9_ODR_800_HZ

#define GYRO9_ODR_800_HZ   0x03

◆ GYRO9_ODR_BIT_MASK

#define GYRO9_ODR_BIT_MASK   0xC0

◆ GYRO9_PD_BIT_MASK

#define GYRO9_PD_BIT_MASK   0x08

◆ GYRO9_PD_NORMAL

#define GYRO9_PD_NORMAL   0x0F

◆ GYRO9_PD_POWER_DOWN

#define GYRO9_PD_POWER_DOWN   0x00

Gyro 9 power mode selection.

Specified power mode selection of Gyro 9 Click driver.

◆ GYRO9_PD_SLEEP

#define GYRO9_PD_SLEEP   0x08

◆ GYRO9_SENSITIVITY_DPS

#define GYRO9_SENSITIVITY_DPS   0.00875f

Gyro 9 device identification values.

Specified device identification values of Gyro 9 Click driver.

◆ GYRO9_SET_DATA_SAMPLE_EDGE

#define GYRO9_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE

Data sample selection.

This macro sets data samples for SPI modules.

Note
Available only on Microchip PIC family devices. This macro will set data sampling for all SPI modules on MCU. Can be overwritten with gyro9_init which will set SET_SPI_DATA_SAMPLE_MIDDLE by default on the mapped mikrobus.

◆ GYRO9_SET_DATA_SAMPLE_MIDDLE

#define GYRO9_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ GYRO9_WHO_AM_I

#define GYRO9_WHO_AM_I   0xD3

Gyro 9 device identification values.

Specified device identification values of Gyro 9 Click driver.