gyro6 2.0.0.0
Gyro 6 Registers Settings

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

Macros

#define GYRO6_CONFIG_FIFO_MODE   0x40
 Gyro 6 Configuration settings.
 
#define GYRO6_CONFIG_FIFO_MODE   0x40
 Gyro 6 Configuration settings.
 
#define GYRO6_CONFIG_EXT_SYNC_DIS   0x00
 
#define GYRO6_CONFIG_EXT_SYNC_TEMP_OUT_L   0x08
 
#define GYRO6_CONFIG_EXT_SYNC_GYRO_XOUT_L   0x10
 
#define GYRO6_CONFIG_EXT_SYNC_GYRO_YOUT_L   0x18
 
#define GYRO6_CONFIG_EXT_SYNC_GYRO_ZOUT_L   0x20
 
#define GYRO6_CONFIG_DLPF_CFG_0   0x00
 
#define GYRO6_CONFIG_DLPF_CFG_1   0x01
 
#define GYRO6_CONFIG_DLPF_CFG_2   0x02
 
#define GYRO6_CONFIG_DLPF_CFG_3   0x03
 
#define GYRO6_CONFIG_DLPF_CFG_4   0x04
 
#define GYRO6_CONFIG_DLPF_CFG_5   0x05
 
#define GYRO6_CONFIG_DLPF_CFG_6   0x06
 
#define GYRO6_CONFIG_DLPF_CFG_7   0x07
 
#define GYRO6_GYRO_CONFIG_XG_ST   0x80
 Gyro 6 Gyro Configuration settings.
 
#define GYRO6_GYRO_CONFIG_YG_ST   0x40
 
#define GYRO6_GYRO_CONFIG_ZG_ST   0x20
 
#define GYRO6_GYRO_CONFIG_FS_SEL_250DPS   0x00
 
#define GYRO6_GYRO_CONFIG_FS_SEL_500DPS   0x08
 
#define GYRO6_GYRO_CONFIG_FS_SEL_1000DPS   0x10
 
#define GYRO6_GYRO_CONFIG_FS_SEL_2000DPS   0x18
 
#define GYRO6_GYRO_CONFIG_FS_SEL_BITS_MASK   0x18
 
#define GYRO6_GYRO_CONFIG_FCHOICE_B_0   0x00
 
#define GYRO6_GYRO_CONFIG_FCHOICE_B_1   0x01
 
#define GYRO6_GYRO_CONFIG_FCHOICE_B_2   0x02
 
#define GYRO6_GYRO_CONFIG_FCHOICE_B_3   0x03
 
#define GYRO6_SAMPLE_RATE_3p9HZ   255
 Gyro 6 Sample Rate settings.
 
#define GYRO6_SAMPLE_RATE_10HZ   99
 
#define GYRO6_SAMPLE_RATE_15p4HZ   64
 
#define GYRO6_SAMPLE_RATE_30p3HZ   32
 
#define GYRO6_SAMPLE_RATE_50HZ   19
 
#define GYRO6_SAMPLE_RATE_100HZ   9
 
#define GYRO6_SAMPLE_RATE_125HZ   7
 
#define GYRO6_SAMPLE_RATE_200HZ   4
 
#define GYRO6_SAMPLE_RATE_250HZ   3
 
#define GYRO6_SAMPLE_RATE_333p3HZ   2
 
#define GYRO6_SAMPLE_RATE_500HZ   1
 
#define GYRO6_SAMPLE_RATE_1000HZ   0
 
#define GYRO6_LP_MODE_CFG_GYRO_CYCLE   0x80
 Gyro 6 Low Power Mode Configuration settings.
 
#define GYRO6_LP_MODE_CFG_G_AVGCFG_1X   0x00
 
#define GYRO6_LP_MODE_CFG_G_AVGCFG_2X   0x10
 
#define GYRO6_LP_MODE_CFG_G_AVGCFG_4X   0x20
 
#define GYRO6_LP_MODE_CFG_G_AVGCFG_8X   0x30
 
#define GYRO6_LP_MODE_CFG_G_AVGCFG_16X   0x40
 
#define GYRO6_LP_MODE_CFG_G_AVGCFG_32X   0x50
 
#define GYRO6_LP_MODE_CFG_G_AVGCFG_64X   0x60
 
#define GYRO6_LP_MODE_CFG_G_AVGCFG_128X   0x70
 
#define GYRO6_FIFO_EN_TEMP_FIFO_EN   0x80
 Gyro 6 FIFO Enable settings.
 
#define GYRO6_FIFO_EN_XG_FIFO_EN   0x40
 
#define GYRO6_FIFO_EN_YG_FIFO_EN   0x20
 
#define GYRO6_FIFO_EN_ZG_FIFO_EN   0x10
 
#define GYRO6_FSYNC_INT   0x80
 Gyro 6 FSYNC Interrupt Status settings.
 
#define GYRO6_INT_PIN_CFG_INT_LEVEL   0x80
 Gyro 6 Interrupt PIN CFG settings.
 
#define GYRO6_INT_PIN_CFG_INT_OPEN   0x40
 
#define GYRO6_INT_PIN_CFG_LATCH_INT_EN   0x20
 
#define GYRO6_INT_PIN_CFG_INT_RD_CLEAR   0x10
 
#define GYRO6_INT_PIN_CFG_FSYNC_INT_LEVEL   0x08
 
#define GYRO6_INT_PIN_CFG_FSYNC_INT_MODE_EN   0x04
 
#define GYRO6_INT_ENABLE_FIFO_OFLOW_INT_EN   0x10
 Gyro 6 Interrupt Enable settings.
 
#define GYRO6_INT_ENABLE_GDRIVE_INT_EN   0x04
 
#define GYRO6_INT_ENABLE_DATA_RDY_INT_EN   0x01
 
#define GYRO6_INT_STATUS_FIFO_OFLOW_INT   0x10
 Gyro 6 Interrupt Status values.
 
#define GYRO6_INT_STATUS_GDRIVE_INT   0x04
 
#define GYRO6_INT_STATUS_DATA_RDY_INT   0x01
 
#define GYRO6_ROOM_TEMP_OFFSET   0
 Gyro 6 Temperature Calculation constants.
 
#define GYRO6_TEMP_SENSITIVITY   326.8
 
#define GYRO6_TEMP_NOMINAL   25.0
 
#define GYRO6_GYRO_SENSITIVITY_FS_SEL_0   131.0
 Gyro 6 Gyro Sensitivity Scale Factor.
 
#define GYRO6_GYRO_SENSITIVITY_FS_SEL_1   65.5
 
#define GYRO6_GYRO_SENSITIVITY_FS_SEL_2   32.8
 
#define GYRO6_GYRO_SENSITIVITY_FS_SEL_3   16.4
 
#define GYRO6_SIGNAL_PATH_RESET_TEMP_RST   0x01
 Gyro 6 Signal Path Reset settings.
 
#define GYRO6_USER_CTRL_FIFO_EN   0x40
 Gyro 6 User Control settings.
 
#define GYRO6_USER_CTRL_I2C_IF_DIS   0x10
 
#define GYRO6_USER_CTRL_FIFO_RST   0x04
 
#define GYRO6_USER_CTRL_SIG_COND_RST   0x01
 
#define GYRO6_PWR_MGMT_1_DEVICE_RESET   0x80
 Gyro 6 Power Management 1 settings.
 
#define GYRO6_PWR_MGMT_1_SLEEP   0x40
 
#define GYRO6_PWR_MGMT_1_GYRO_STANDBY   0x10
 
#define GYRO6_PWR_MGMT_1_INTERNAL_OSC   0x00
 
#define GYRO6_PWR_MGMT_1_AUTO_SEL_CLOCK   0x01
 
#define GYRO6_PWR_MGMT_1_STOP_CLOCK   0x07
 
#define GYRO6_PWR_MGMT_2_DISABLE_X_GYRO   0x04
 Gyro 6 Power Management 2 settings.
 
#define GYRO6_PWR_MGMT_2_DISABLE_Y_GYRO   0x02
 
#define GYRO6_PWR_MGMT_2_DISABLE_Z_GYRO   0x01
 
#define GYRO6_DEVICE_ID   0xB5
 Gyro 6 Device ID.
 
#define GYRO6_SET_DEV_ADDR_0   0x68
 Gyro 6 device address setting.
 
#define GYRO6_SET_DEV_ADDR_1   0x69
 
#define GYRO6_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define GYRO6_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of Gyro 6 Click driver.

Macro Definition Documentation

◆ GYRO6_CONFIG_DLPF_CFG_0

#define GYRO6_CONFIG_DLPF_CFG_0   0x00

◆ GYRO6_CONFIG_DLPF_CFG_1

#define GYRO6_CONFIG_DLPF_CFG_1   0x01

◆ GYRO6_CONFIG_DLPF_CFG_2

#define GYRO6_CONFIG_DLPF_CFG_2   0x02

◆ GYRO6_CONFIG_DLPF_CFG_3

#define GYRO6_CONFIG_DLPF_CFG_3   0x03

◆ GYRO6_CONFIG_DLPF_CFG_4

#define GYRO6_CONFIG_DLPF_CFG_4   0x04

◆ GYRO6_CONFIG_DLPF_CFG_5

#define GYRO6_CONFIG_DLPF_CFG_5   0x05

◆ GYRO6_CONFIG_DLPF_CFG_6

#define GYRO6_CONFIG_DLPF_CFG_6   0x06

◆ GYRO6_CONFIG_DLPF_CFG_7

#define GYRO6_CONFIG_DLPF_CFG_7   0x07

◆ GYRO6_CONFIG_EXT_SYNC_DIS

#define GYRO6_CONFIG_EXT_SYNC_DIS   0x00

◆ GYRO6_CONFIG_EXT_SYNC_GYRO_XOUT_L

#define GYRO6_CONFIG_EXT_SYNC_GYRO_XOUT_L   0x10

◆ GYRO6_CONFIG_EXT_SYNC_GYRO_YOUT_L

#define GYRO6_CONFIG_EXT_SYNC_GYRO_YOUT_L   0x18

◆ GYRO6_CONFIG_EXT_SYNC_GYRO_ZOUT_L

#define GYRO6_CONFIG_EXT_SYNC_GYRO_ZOUT_L   0x20

◆ GYRO6_CONFIG_EXT_SYNC_TEMP_OUT_L

#define GYRO6_CONFIG_EXT_SYNC_TEMP_OUT_L   0x08

◆ GYRO6_CONFIG_FIFO_MODE [1/2]

#define GYRO6_CONFIG_FIFO_MODE   0x40

Gyro 6 Configuration settings.

Specified settings for Configuration register of Gyro 6 Click driver.

◆ GYRO6_CONFIG_FIFO_MODE [2/2]

#define GYRO6_CONFIG_FIFO_MODE   0x40

Gyro 6 Configuration settings.

Specified settings for Configuration register of Gyro 6 Click driver.

◆ GYRO6_DEVICE_ID

#define GYRO6_DEVICE_ID   0xB5

Gyro 6 Device ID.

Specified Device ID value of Gyro 6 Click driver.

◆ GYRO6_FIFO_EN_TEMP_FIFO_EN

#define GYRO6_FIFO_EN_TEMP_FIFO_EN   0x80

Gyro 6 FIFO Enable settings.

Specified settings for FIFO Enable register of Gyro 6 Click driver.

◆ GYRO6_FIFO_EN_XG_FIFO_EN

#define GYRO6_FIFO_EN_XG_FIFO_EN   0x40

◆ GYRO6_FIFO_EN_YG_FIFO_EN

#define GYRO6_FIFO_EN_YG_FIFO_EN   0x20

◆ GYRO6_FIFO_EN_ZG_FIFO_EN

#define GYRO6_FIFO_EN_ZG_FIFO_EN   0x10

◆ GYRO6_FSYNC_INT

#define GYRO6_FSYNC_INT   0x80

Gyro 6 FSYNC Interrupt Status settings.

Specified settings for FSYNC Interrupt Status register of Gyro 6 Click driver.

◆ GYRO6_GYRO_CONFIG_FCHOICE_B_0

#define GYRO6_GYRO_CONFIG_FCHOICE_B_0   0x00

◆ GYRO6_GYRO_CONFIG_FCHOICE_B_1

#define GYRO6_GYRO_CONFIG_FCHOICE_B_1   0x01

◆ GYRO6_GYRO_CONFIG_FCHOICE_B_2

#define GYRO6_GYRO_CONFIG_FCHOICE_B_2   0x02

◆ GYRO6_GYRO_CONFIG_FCHOICE_B_3

#define GYRO6_GYRO_CONFIG_FCHOICE_B_3   0x03

◆ GYRO6_GYRO_CONFIG_FS_SEL_1000DPS

#define GYRO6_GYRO_CONFIG_FS_SEL_1000DPS   0x10

◆ GYRO6_GYRO_CONFIG_FS_SEL_2000DPS

#define GYRO6_GYRO_CONFIG_FS_SEL_2000DPS   0x18

◆ GYRO6_GYRO_CONFIG_FS_SEL_250DPS

#define GYRO6_GYRO_CONFIG_FS_SEL_250DPS   0x00

◆ GYRO6_GYRO_CONFIG_FS_SEL_500DPS

#define GYRO6_GYRO_CONFIG_FS_SEL_500DPS   0x08

◆ GYRO6_GYRO_CONFIG_FS_SEL_BITS_MASK

#define GYRO6_GYRO_CONFIG_FS_SEL_BITS_MASK   0x18

◆ GYRO6_GYRO_CONFIG_XG_ST

#define GYRO6_GYRO_CONFIG_XG_ST   0x80

Gyro 6 Gyro Configuration settings.

Specified settings for Gyro Configuration register of Gyro 6 Click driver.

◆ GYRO6_GYRO_CONFIG_YG_ST

#define GYRO6_GYRO_CONFIG_YG_ST   0x40

◆ GYRO6_GYRO_CONFIG_ZG_ST

#define GYRO6_GYRO_CONFIG_ZG_ST   0x20

◆ GYRO6_GYRO_SENSITIVITY_FS_SEL_0

#define GYRO6_GYRO_SENSITIVITY_FS_SEL_0   131.0

Gyro 6 Gyro Sensitivity Scale Factor.

Specified values for Gyro Sensitivity Scale Factor of Gyro 6 Click driver.

◆ GYRO6_GYRO_SENSITIVITY_FS_SEL_1

#define GYRO6_GYRO_SENSITIVITY_FS_SEL_1   65.5

◆ GYRO6_GYRO_SENSITIVITY_FS_SEL_2

#define GYRO6_GYRO_SENSITIVITY_FS_SEL_2   32.8

◆ GYRO6_GYRO_SENSITIVITY_FS_SEL_3

#define GYRO6_GYRO_SENSITIVITY_FS_SEL_3   16.4

◆ GYRO6_INT_ENABLE_DATA_RDY_INT_EN

#define GYRO6_INT_ENABLE_DATA_RDY_INT_EN   0x01

◆ GYRO6_INT_ENABLE_FIFO_OFLOW_INT_EN

#define GYRO6_INT_ENABLE_FIFO_OFLOW_INT_EN   0x10

Gyro 6 Interrupt Enable settings.

Specified settings for Interrupt Enable register of Gyro 6 Click driver.

◆ GYRO6_INT_ENABLE_GDRIVE_INT_EN

#define GYRO6_INT_ENABLE_GDRIVE_INT_EN   0x04

◆ GYRO6_INT_PIN_CFG_FSYNC_INT_LEVEL

#define GYRO6_INT_PIN_CFG_FSYNC_INT_LEVEL   0x08

◆ GYRO6_INT_PIN_CFG_FSYNC_INT_MODE_EN

#define GYRO6_INT_PIN_CFG_FSYNC_INT_MODE_EN   0x04

◆ GYRO6_INT_PIN_CFG_INT_LEVEL

#define GYRO6_INT_PIN_CFG_INT_LEVEL   0x80

Gyro 6 Interrupt PIN CFG settings.

Specified settings for Interrupt PIN CFG register of Gyro 6 Click driver.

◆ GYRO6_INT_PIN_CFG_INT_OPEN

#define GYRO6_INT_PIN_CFG_INT_OPEN   0x40

◆ GYRO6_INT_PIN_CFG_INT_RD_CLEAR

#define GYRO6_INT_PIN_CFG_INT_RD_CLEAR   0x10

◆ GYRO6_INT_PIN_CFG_LATCH_INT_EN

#define GYRO6_INT_PIN_CFG_LATCH_INT_EN   0x20

◆ GYRO6_INT_STATUS_DATA_RDY_INT

#define GYRO6_INT_STATUS_DATA_RDY_INT   0x01

◆ GYRO6_INT_STATUS_FIFO_OFLOW_INT

#define GYRO6_INT_STATUS_FIFO_OFLOW_INT   0x10

Gyro 6 Interrupt Status values.

Specified values for Interrupt Status of Gyro 6 Click driver.

◆ GYRO6_INT_STATUS_GDRIVE_INT

#define GYRO6_INT_STATUS_GDRIVE_INT   0x04

◆ GYRO6_LP_MODE_CFG_G_AVGCFG_128X

#define GYRO6_LP_MODE_CFG_G_AVGCFG_128X   0x70

◆ GYRO6_LP_MODE_CFG_G_AVGCFG_16X

#define GYRO6_LP_MODE_CFG_G_AVGCFG_16X   0x40

◆ GYRO6_LP_MODE_CFG_G_AVGCFG_1X

#define GYRO6_LP_MODE_CFG_G_AVGCFG_1X   0x00

◆ GYRO6_LP_MODE_CFG_G_AVGCFG_2X

#define GYRO6_LP_MODE_CFG_G_AVGCFG_2X   0x10

◆ GYRO6_LP_MODE_CFG_G_AVGCFG_32X

#define GYRO6_LP_MODE_CFG_G_AVGCFG_32X   0x50

◆ GYRO6_LP_MODE_CFG_G_AVGCFG_4X

#define GYRO6_LP_MODE_CFG_G_AVGCFG_4X   0x20

◆ GYRO6_LP_MODE_CFG_G_AVGCFG_64X

#define GYRO6_LP_MODE_CFG_G_AVGCFG_64X   0x60

◆ GYRO6_LP_MODE_CFG_G_AVGCFG_8X

#define GYRO6_LP_MODE_CFG_G_AVGCFG_8X   0x30

◆ GYRO6_LP_MODE_CFG_GYRO_CYCLE

#define GYRO6_LP_MODE_CFG_GYRO_CYCLE   0x80

Gyro 6 Low Power Mode Configuration settings.

Specified settings for Low Power Mode Configuration register of Gyro 6 Click driver.

◆ GYRO6_PWR_MGMT_1_AUTO_SEL_CLOCK

#define GYRO6_PWR_MGMT_1_AUTO_SEL_CLOCK   0x01

◆ GYRO6_PWR_MGMT_1_DEVICE_RESET

#define GYRO6_PWR_MGMT_1_DEVICE_RESET   0x80

Gyro 6 Power Management 1 settings.

Specified settings for Power Management 1 register of Gyro 6 Click driver.

◆ GYRO6_PWR_MGMT_1_GYRO_STANDBY

#define GYRO6_PWR_MGMT_1_GYRO_STANDBY   0x10

◆ GYRO6_PWR_MGMT_1_INTERNAL_OSC

#define GYRO6_PWR_MGMT_1_INTERNAL_OSC   0x00

◆ GYRO6_PWR_MGMT_1_SLEEP

#define GYRO6_PWR_MGMT_1_SLEEP   0x40

◆ GYRO6_PWR_MGMT_1_STOP_CLOCK

#define GYRO6_PWR_MGMT_1_STOP_CLOCK   0x07

◆ GYRO6_PWR_MGMT_2_DISABLE_X_GYRO

#define GYRO6_PWR_MGMT_2_DISABLE_X_GYRO   0x04

Gyro 6 Power Management 2 settings.

Specified settings for Power Management 2 register of Gyro 6 Click driver.

◆ GYRO6_PWR_MGMT_2_DISABLE_Y_GYRO

#define GYRO6_PWR_MGMT_2_DISABLE_Y_GYRO   0x02

◆ GYRO6_PWR_MGMT_2_DISABLE_Z_GYRO

#define GYRO6_PWR_MGMT_2_DISABLE_Z_GYRO   0x01

◆ GYRO6_ROOM_TEMP_OFFSET

#define GYRO6_ROOM_TEMP_OFFSET   0

Gyro 6 Temperature Calculation constants.

Specified constants for Die temperature calculation of Gyro 6 Click driver.

◆ GYRO6_SAMPLE_RATE_1000HZ

#define GYRO6_SAMPLE_RATE_1000HZ   0

◆ GYRO6_SAMPLE_RATE_100HZ

#define GYRO6_SAMPLE_RATE_100HZ   9

◆ GYRO6_SAMPLE_RATE_10HZ

#define GYRO6_SAMPLE_RATE_10HZ   99

◆ GYRO6_SAMPLE_RATE_125HZ

#define GYRO6_SAMPLE_RATE_125HZ   7

◆ GYRO6_SAMPLE_RATE_15p4HZ

#define GYRO6_SAMPLE_RATE_15p4HZ   64

◆ GYRO6_SAMPLE_RATE_200HZ

#define GYRO6_SAMPLE_RATE_200HZ   4

◆ GYRO6_SAMPLE_RATE_250HZ

#define GYRO6_SAMPLE_RATE_250HZ   3

◆ GYRO6_SAMPLE_RATE_30p3HZ

#define GYRO6_SAMPLE_RATE_30p3HZ   32

◆ GYRO6_SAMPLE_RATE_333p3HZ

#define GYRO6_SAMPLE_RATE_333p3HZ   2

◆ GYRO6_SAMPLE_RATE_3p9HZ

#define GYRO6_SAMPLE_RATE_3p9HZ   255

Gyro 6 Sample Rate settings.

Specified settings for Sample Rate register of Gyro 6 Click driver.

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

◆ GYRO6_SAMPLE_RATE_500HZ

#define GYRO6_SAMPLE_RATE_500HZ   1

◆ GYRO6_SAMPLE_RATE_50HZ

#define GYRO6_SAMPLE_RATE_50HZ   19

◆ GYRO6_SET_DATA_SAMPLE_EDGE

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

◆ GYRO6_SET_DATA_SAMPLE_MIDDLE

#define GYRO6_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ GYRO6_SET_DEV_ADDR_0

#define GYRO6_SET_DEV_ADDR_0   0x68

Gyro 6 device address setting.

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

◆ GYRO6_SET_DEV_ADDR_1

#define GYRO6_SET_DEV_ADDR_1   0x69

◆ GYRO6_SIGNAL_PATH_RESET_TEMP_RST

#define GYRO6_SIGNAL_PATH_RESET_TEMP_RST   0x01

Gyro 6 Signal Path Reset settings.

Specified settings for Signal Path Reset register of Gyro 6 Click driver.

◆ GYRO6_TEMP_NOMINAL

#define GYRO6_TEMP_NOMINAL   25.0

◆ GYRO6_TEMP_SENSITIVITY

#define GYRO6_TEMP_SENSITIVITY   326.8

◆ GYRO6_USER_CTRL_FIFO_EN

#define GYRO6_USER_CTRL_FIFO_EN   0x40

Gyro 6 User Control settings.

Specified settings for User Control register of Gyro 6 Click driver.

◆ GYRO6_USER_CTRL_FIFO_RST

#define GYRO6_USER_CTRL_FIFO_RST   0x04

◆ GYRO6_USER_CTRL_I2C_IF_DIS

#define GYRO6_USER_CTRL_I2C_IF_DIS   0x10

◆ GYRO6_USER_CTRL_SIG_COND_RST

#define GYRO6_USER_CTRL_SIG_COND_RST   0x01