gyro7 2.0.0.0
Gyro 7 Registers Settings

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

Macros

#define GYRO7_DLPF_B0B2_40_160_HZ   0x0004
 Gyro 7 DLPF settings.
 
#define GYRO7_DLPF_B0B2_80_320_HZ   0x0011
 
#define GYRO7_DLPF_B0B2_160_640_HZ   0x0040
 
#define GYRO7_DLPF_B0B2_250_HZ   0x0095
 
#define GYRO7_DLPF_B0B2_500_HZ   0x0212
 
#define GYRO7_DLPF_B1_40_160_HZ   0x0008
 
#define GYRO7_DLPF_B1_80_320_HZ   0x001C
 
#define GYRO7_DLPF_B1_160_640_HZ   0x006D
 
#define GYRO7_DLPF_B1_250_HZ   0x0100
 
#define GYRO7_DLPF_B1_500_HZ   0x0387
 
#define GYRO7_DLPF_A1_40_160_HZ   0x82D7
 
#define GYRO7_DLPF_A1_80_320_HZ   0x85AF
 
#define GYRO7_DLPF_A1_160_640_HZ   0x8B59
 
#define GYRO7_DLPF_A1_250_HZ   0x91AE
 
#define GYRO7_DLPF_A1_500_HZ   0xA2EE
 
#define GYRO7_DLPF_A2_40_160_HZ   0x3D38
 
#define GYRO7_DLPF_A2_80_320_HZ   0x3A8F
 
#define GYRO7_DLPF_A2_160_640_HZ   0x3594
 
#define GYRO7_DLPF_A2_250_HZ   0x307C
 
#define GYRO7_DLPF_A2_500_HZ   0x24BD
 
#define GYRO7_DLPF_40_160_HZ   0x00
 
#define GYRO7_DLPF_80_320_HZ   0x01
 
#define GYRO7_DLPF_160_640_HZ   0x02
 
#define GYRO7_DLPF_250_HZ   0x03
 
#define GYRO7_DLPF_500_HZ   0x04
 
#define GYRO7_CONFIG_HPF_ORDER_BYPASS_HPF   0x00
 Gyro 7 configuration settings.
 
#define GYRO7_CONFIG_HPF_ORDER_ONE_HPF   0x40
 
#define GYRO7_CONFIG_HPF_ORDER_TWO_HPF   0x60
 
#define GYRO7_CONFIG_HPF_CFG_M_FACTOR_9   0x00
 
#define GYRO7_CONFIG_HPF_CFG_M_FACTOR_11   0x04
 
#define GYRO7_CONFIG_HPF_CFG_M_FACTOR_12   0x08
 
#define GYRO7_CONFIG_HPF_CFG_M_FACTOR_13   0x0C
 
#define GYRO7_CONFIG_HPF_CFG_M_FACTOR_14   0x10
 
#define GYRO7_CONFIG_HPF_CFG_M_FACTOR_15   0x14
 
#define GYRO7_CONFIG_HPF_CFG_M_FACTOR_16   0x18
 
#define GYRO7_CONFIG_HPF_CFG_M_FACTOR_17   0x1C
 
#define GYRO7_CONFIG_DLPF_CFG_BYPASS_DLPF   0x00
 
#define GYRO7_CONFIG_DLPF_CFG_ENABLE_DLPF   0x02
 
#define GYRO7_SAMPLE_RATE_31p25_HZ   255
 Gyro 7 sample rate settings.
 
#define GYRO7_SAMPLE_RATE_40_HZ   199
 
#define GYRO7_SAMPLE_RATE_80_HZ   99
 
#define GYRO7_SAMPLE_RATE_100_HZ   79
 
#define GYRO7_SAMPLE_RATE_200_HZ   39
 
#define GYRO7_SAMPLE_RATE_400_HZ   19
 
#define GYRO7_SAMPLE_RATE_800_HZ   9
 
#define GYRO7_SAMPLE_RATE_1000_HZ   7
 
#define GYRO7_SAMPLE_RATE_2000_HZ   3
 
#define GYRO7_SAMPLE_RATE_4000_HZ   1
 
#define GYRO7_SAMPLE_RATE_8000_HZ   0
 
#define GYRO7_INT_PIN_CFG_INT_LEVEL   0x80
 Gyro 7 interrupt pin config settings.
 
#define GYRO7_INT_PIN_CFG_INT_OPEN   0x40
 
#define GYRO7_INT_PIN_CFG_LATCH_INT_EN   0x20
 
#define GYRO7_INT_PIN_CFG_INT_RD_CLEAR   0x10
 
#define GYRO7_INT_ENABLE_DATA_RDY_EN   0x01
 Gyro 7 interrupt enable settings.
 
#define GYRO7_PWR_MGMT_1_DEVICE_RESET   0x80
 Gyro 7 power management 1 settings.
 
#define GYRO7_PWR_MGMT_1_SLEEP   0x40
 
#define GYRO7_PWR_MGMT_1_INTERNAL_OSC   0x00
 
#define GYRO7_PWR_MGMT_1_PLL_OSC   0x01
 
#define GYRO7_GYRO_CONFIG_XG_ST   0x80
 Gyro 7 gyro configuration settings.
 
#define GYRO7_GYRO_CONFIG_YG_ST   0x40
 
#define GYRO7_GYRO_CONFIG_FS_SEL_46p5_DPS   0x00
 
#define GYRO7_GYRO_CONFIG_FS_SEL_93_DPS   0x08
 
#define GYRO7_GYRO_CONFIG_FS_SEL_187_DPS   0x10
 
#define GYRO7_GYRO_CONFIG_FS_SEL_374_DPS   0x18
 
#define GYRO7_GYRO_CONFIG_FS_SEL_BITS_MASK   0x18
 
#define GYRO7_GYRO_CONFIG_FCHOICE_B   0x01
 
#define GYRO7_GYRO_SENSITIVITY_FS_SEL_0   700.0
 Gyro 7 gyro sensitivity scale factor.
 
#define GYRO7_GYRO_SENSITIVITY_FS_SEL_1   350.0
 
#define GYRO7_GYRO_SENSITIVITY_FS_SEL_2   175.0
 
#define GYRO7_GYRO_SENSITIVITY_FS_SEL_3   87.5
 
#define GYRO7_TEMP_SENSITIVITY   123.0
 Gyro 7 temperature calculation constant.
 
#define GYRO7_WHO_AM_I   0x88
 Gyro 7 WHO AM I register value.
 
#define GYRO7_SPI_READ_WRITE_BIT   0x80
 Gyro 7 SPI Read/Write bit setting.
 
#define GYRO7_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define GYRO7_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of Gyro 7 Click driver.

Macro Definition Documentation

◆ GYRO7_CONFIG_DLPF_CFG_BYPASS_DLPF

#define GYRO7_CONFIG_DLPF_CFG_BYPASS_DLPF   0x00

◆ GYRO7_CONFIG_DLPF_CFG_ENABLE_DLPF

#define GYRO7_CONFIG_DLPF_CFG_ENABLE_DLPF   0x02

◆ GYRO7_CONFIG_HPF_CFG_M_FACTOR_11

#define GYRO7_CONFIG_HPF_CFG_M_FACTOR_11   0x04

◆ GYRO7_CONFIG_HPF_CFG_M_FACTOR_12

#define GYRO7_CONFIG_HPF_CFG_M_FACTOR_12   0x08

◆ GYRO7_CONFIG_HPF_CFG_M_FACTOR_13

#define GYRO7_CONFIG_HPF_CFG_M_FACTOR_13   0x0C

◆ GYRO7_CONFIG_HPF_CFG_M_FACTOR_14

#define GYRO7_CONFIG_HPF_CFG_M_FACTOR_14   0x10

◆ GYRO7_CONFIG_HPF_CFG_M_FACTOR_15

#define GYRO7_CONFIG_HPF_CFG_M_FACTOR_15   0x14

◆ GYRO7_CONFIG_HPF_CFG_M_FACTOR_16

#define GYRO7_CONFIG_HPF_CFG_M_FACTOR_16   0x18

◆ GYRO7_CONFIG_HPF_CFG_M_FACTOR_17

#define GYRO7_CONFIG_HPF_CFG_M_FACTOR_17   0x1C

◆ GYRO7_CONFIG_HPF_CFG_M_FACTOR_9

#define GYRO7_CONFIG_HPF_CFG_M_FACTOR_9   0x00

◆ GYRO7_CONFIG_HPF_ORDER_BYPASS_HPF

#define GYRO7_CONFIG_HPF_ORDER_BYPASS_HPF   0x00

Gyro 7 configuration settings.

Specified settings for configuration register of Gyro 7 Click driver.

◆ GYRO7_CONFIG_HPF_ORDER_ONE_HPF

#define GYRO7_CONFIG_HPF_ORDER_ONE_HPF   0x40

◆ GYRO7_CONFIG_HPF_ORDER_TWO_HPF

#define GYRO7_CONFIG_HPF_ORDER_TWO_HPF   0x60

◆ GYRO7_DLPF_160_640_HZ

#define GYRO7_DLPF_160_640_HZ   0x02

◆ GYRO7_DLPF_250_HZ

#define GYRO7_DLPF_250_HZ   0x03

◆ GYRO7_DLPF_40_160_HZ

#define GYRO7_DLPF_40_160_HZ   0x00

◆ GYRO7_DLPF_500_HZ

#define GYRO7_DLPF_500_HZ   0x04

◆ GYRO7_DLPF_80_320_HZ

#define GYRO7_DLPF_80_320_HZ   0x01

◆ GYRO7_DLPF_A1_160_640_HZ

#define GYRO7_DLPF_A1_160_640_HZ   0x8B59

◆ GYRO7_DLPF_A1_250_HZ

#define GYRO7_DLPF_A1_250_HZ   0x91AE

◆ GYRO7_DLPF_A1_40_160_HZ

#define GYRO7_DLPF_A1_40_160_HZ   0x82D7

◆ GYRO7_DLPF_A1_500_HZ

#define GYRO7_DLPF_A1_500_HZ   0xA2EE

◆ GYRO7_DLPF_A1_80_320_HZ

#define GYRO7_DLPF_A1_80_320_HZ   0x85AF

◆ GYRO7_DLPF_A2_160_640_HZ

#define GYRO7_DLPF_A2_160_640_HZ   0x3594

◆ GYRO7_DLPF_A2_250_HZ

#define GYRO7_DLPF_A2_250_HZ   0x307C

◆ GYRO7_DLPF_A2_40_160_HZ

#define GYRO7_DLPF_A2_40_160_HZ   0x3D38

◆ GYRO7_DLPF_A2_500_HZ

#define GYRO7_DLPF_A2_500_HZ   0x24BD

◆ GYRO7_DLPF_A2_80_320_HZ

#define GYRO7_DLPF_A2_80_320_HZ   0x3A8F

◆ GYRO7_DLPF_B0B2_160_640_HZ

#define GYRO7_DLPF_B0B2_160_640_HZ   0x0040

◆ GYRO7_DLPF_B0B2_250_HZ

#define GYRO7_DLPF_B0B2_250_HZ   0x0095

◆ GYRO7_DLPF_B0B2_40_160_HZ

#define GYRO7_DLPF_B0B2_40_160_HZ   0x0004

Gyro 7 DLPF settings.

Specified DLPF settings of Gyro 7 Click driver.

◆ GYRO7_DLPF_B0B2_500_HZ

#define GYRO7_DLPF_B0B2_500_HZ   0x0212

◆ GYRO7_DLPF_B0B2_80_320_HZ

#define GYRO7_DLPF_B0B2_80_320_HZ   0x0011

◆ GYRO7_DLPF_B1_160_640_HZ

#define GYRO7_DLPF_B1_160_640_HZ   0x006D

◆ GYRO7_DLPF_B1_250_HZ

#define GYRO7_DLPF_B1_250_HZ   0x0100

◆ GYRO7_DLPF_B1_40_160_HZ

#define GYRO7_DLPF_B1_40_160_HZ   0x0008

◆ GYRO7_DLPF_B1_500_HZ

#define GYRO7_DLPF_B1_500_HZ   0x0387

◆ GYRO7_DLPF_B1_80_320_HZ

#define GYRO7_DLPF_B1_80_320_HZ   0x001C

◆ GYRO7_GYRO_CONFIG_FCHOICE_B

#define GYRO7_GYRO_CONFIG_FCHOICE_B   0x01

◆ GYRO7_GYRO_CONFIG_FS_SEL_187_DPS

#define GYRO7_GYRO_CONFIG_FS_SEL_187_DPS   0x10

◆ GYRO7_GYRO_CONFIG_FS_SEL_374_DPS

#define GYRO7_GYRO_CONFIG_FS_SEL_374_DPS   0x18

◆ GYRO7_GYRO_CONFIG_FS_SEL_46p5_DPS

#define GYRO7_GYRO_CONFIG_FS_SEL_46p5_DPS   0x00

◆ GYRO7_GYRO_CONFIG_FS_SEL_93_DPS

#define GYRO7_GYRO_CONFIG_FS_SEL_93_DPS   0x08

◆ GYRO7_GYRO_CONFIG_FS_SEL_BITS_MASK

#define GYRO7_GYRO_CONFIG_FS_SEL_BITS_MASK   0x18

◆ GYRO7_GYRO_CONFIG_XG_ST

#define GYRO7_GYRO_CONFIG_XG_ST   0x80

Gyro 7 gyro configuration settings.

Specified settings for gyro configuration register of Gyro 7 Click driver.

◆ GYRO7_GYRO_CONFIG_YG_ST

#define GYRO7_GYRO_CONFIG_YG_ST   0x40

◆ GYRO7_GYRO_SENSITIVITY_FS_SEL_0

#define GYRO7_GYRO_SENSITIVITY_FS_SEL_0   700.0

Gyro 7 gyro sensitivity scale factor.

Specified values for gyro sensitivity scale factor of Gyro 7 Click driver.

◆ GYRO7_GYRO_SENSITIVITY_FS_SEL_1

#define GYRO7_GYRO_SENSITIVITY_FS_SEL_1   350.0

◆ GYRO7_GYRO_SENSITIVITY_FS_SEL_2

#define GYRO7_GYRO_SENSITIVITY_FS_SEL_2   175.0

◆ GYRO7_GYRO_SENSITIVITY_FS_SEL_3

#define GYRO7_GYRO_SENSITIVITY_FS_SEL_3   87.5

◆ GYRO7_INT_ENABLE_DATA_RDY_EN

#define GYRO7_INT_ENABLE_DATA_RDY_EN   0x01

Gyro 7 interrupt enable settings.

Specified settings for interrupt enable register of Gyro 7 Click driver.

◆ GYRO7_INT_PIN_CFG_INT_LEVEL

#define GYRO7_INT_PIN_CFG_INT_LEVEL   0x80

Gyro 7 interrupt pin config settings.

Specified settings for interrupt pin config register of Gyro 7 Click driver.

◆ GYRO7_INT_PIN_CFG_INT_OPEN

#define GYRO7_INT_PIN_CFG_INT_OPEN   0x40

◆ GYRO7_INT_PIN_CFG_INT_RD_CLEAR

#define GYRO7_INT_PIN_CFG_INT_RD_CLEAR   0x10

◆ GYRO7_INT_PIN_CFG_LATCH_INT_EN

#define GYRO7_INT_PIN_CFG_LATCH_INT_EN   0x20

◆ GYRO7_PWR_MGMT_1_DEVICE_RESET

#define GYRO7_PWR_MGMT_1_DEVICE_RESET   0x80

Gyro 7 power management 1 settings.

Specified settings for power management 1 register of Gyro 7 Click driver.

◆ GYRO7_PWR_MGMT_1_INTERNAL_OSC

#define GYRO7_PWR_MGMT_1_INTERNAL_OSC   0x00

◆ GYRO7_PWR_MGMT_1_PLL_OSC

#define GYRO7_PWR_MGMT_1_PLL_OSC   0x01

◆ GYRO7_PWR_MGMT_1_SLEEP

#define GYRO7_PWR_MGMT_1_SLEEP   0x40

◆ GYRO7_SAMPLE_RATE_1000_HZ

#define GYRO7_SAMPLE_RATE_1000_HZ   7

◆ GYRO7_SAMPLE_RATE_100_HZ

#define GYRO7_SAMPLE_RATE_100_HZ   79

◆ GYRO7_SAMPLE_RATE_2000_HZ

#define GYRO7_SAMPLE_RATE_2000_HZ   3

◆ GYRO7_SAMPLE_RATE_200_HZ

#define GYRO7_SAMPLE_RATE_200_HZ   39

◆ GYRO7_SAMPLE_RATE_31p25_HZ

#define GYRO7_SAMPLE_RATE_31p25_HZ   255

Gyro 7 sample rate settings.

Specified settings for sample rate register of Gyro 7 Click driver.

Note
SAMPLE_RATE = INTERNAL_SAMPLE_RATE / ( 1 + SMPLRT_DIV ), where INTERNAL_SAMPLE_RATE = 8 kHz.

◆ GYRO7_SAMPLE_RATE_4000_HZ

#define GYRO7_SAMPLE_RATE_4000_HZ   1

◆ GYRO7_SAMPLE_RATE_400_HZ

#define GYRO7_SAMPLE_RATE_400_HZ   19

◆ GYRO7_SAMPLE_RATE_40_HZ

#define GYRO7_SAMPLE_RATE_40_HZ   199

◆ GYRO7_SAMPLE_RATE_8000_HZ

#define GYRO7_SAMPLE_RATE_8000_HZ   0

◆ GYRO7_SAMPLE_RATE_800_HZ

#define GYRO7_SAMPLE_RATE_800_HZ   9

◆ GYRO7_SAMPLE_RATE_80_HZ

#define GYRO7_SAMPLE_RATE_80_HZ   99

◆ GYRO7_SET_DATA_SAMPLE_EDGE

#define GYRO7_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 gyro7_init which will set SET_SPI_DATA_SAMPLE_MIDDLE by default on the mapped mikrobus.

◆ GYRO7_SET_DATA_SAMPLE_MIDDLE

#define GYRO7_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ GYRO7_SPI_READ_WRITE_BIT

#define GYRO7_SPI_READ_WRITE_BIT   0x80

Gyro 7 SPI Read/Write bit setting.

Specified SPI Read/Write bit setting of Gyro 7 Click driver.

◆ GYRO7_TEMP_SENSITIVITY

#define GYRO7_TEMP_SENSITIVITY   123.0

Gyro 7 temperature calculation constant.

Specified constant for temperature calculation of Gyro 7 Click driver.

◆ GYRO7_WHO_AM_I

#define GYRO7_WHO_AM_I   0x88

Gyro 7 WHO AM I register value.

Specified WHO AM I register value of Gyro 7 Click driver.