Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
l3gd20_regs.h File Reference

ST L3GD20 3-axis gyroscope register definitions. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define L3GD20_REG_WHO_AM_I   0x0F
 
#define L3GD20_REG_CTRL_REG1   0x20
 
#define L3GD20_REG_CTRL_REG2   0x21
 
#define L3GD20_REG_CTRL_REG3   0x22
 
#define L3GD20_REG_CTRL_REG4   0x23
 
#define L3GD20_REG_STATUS_REG   0x27
 
#define L3GD20_REG_OUT_X_L   0x28
 
#define L3GD20_REG_OUT_X_H   0x29
 
#define L3GD20_REG_OUT_Y_L   0x2A
 
#define L3GD20_REG_OUT_Y_H   0x2B
 
#define L3GD20_REG_OUT_Z_L   0x2C
 
#define L3GD20_REG_OUT_Z_H   0x2D
 
#define L3GD20_WHO_AM_I   0xD4
 L3GD20 device identifier contained in L3GD20_REG_WHO_AM_I. More...
 
#define L3GD20_DR_MASK   0xC0
 
#define L3GD20_BW_MASK   0x30
 
#define L3GD20_PD   (1 << 3)
 
#define L3GD20_Xen   (1 << 0)
 
#define L3GD20_Yen   (1 << 1)
 
#define L3GD20_Zen   (1 << 2)
 
#define L3GD20_FS_MASK   0x30
 
#define L3GD20_BDU   (1 << 7)
 

Enumerations

enum  L3gd20DRBW {
  L3GD20_DRBW_95Hz_12_5BW , L3GD20_DRBW_95Hz_25BW , L3GD20_DRBW_95Hz_25BW2 , L3GD20_DRBW_95Hz_25BW3 ,
  L3GD20_DRBW_190Hz_12_5BW , L3GD20_DRBW_190Hz_25BW , L3GD20_DRBW_190Hz_50BW , L3GD20_DRBW_190Hz_70BW ,
  L3GD20_DRBW_380Hz_20BW , L3GD20_DRBW_380Hz_25BW , L3GD20_DRBW_380Hz_50BW , L3GD20_DRBW_380Hz_100BW ,
  L3GD20_DRBW_760Hz_30BW , L3GD20_DRBW_760Hz_35BW , L3GD20_DRBW_760Hz_50BW , L3GD20_DRBW_760Hz_100BW
}
 
enum  L3gd20FullScale { L3GD20_FS_250dps = 0 , L3GD20_FS_500dps = 1 , L3GD20_FS_2000dps = 2 , L3GD20_FS_2000dps2 = 3 }
 

Detailed Description

ST L3GD20 3-axis gyroscope register definitions.

Definition in file l3gd20_regs.h.

Macro Definition Documentation

◆ L3GD20_BDU

#define L3GD20_BDU   (1 << 7)

Definition at line 58 of file l3gd20_regs.h.

◆ L3GD20_BW_MASK

#define L3GD20_BW_MASK   0x30

Definition at line 49 of file l3gd20_regs.h.

◆ L3GD20_DR_MASK

#define L3GD20_DR_MASK   0xC0

Definition at line 48 of file l3gd20_regs.h.

◆ L3GD20_FS_MASK

#define L3GD20_FS_MASK   0x30

Definition at line 57 of file l3gd20_regs.h.

◆ L3GD20_PD

#define L3GD20_PD   (1 << 3)

Definition at line 52 of file l3gd20_regs.h.

◆ L3GD20_REG_CTRL_REG1

#define L3GD20_REG_CTRL_REG1   0x20

Definition at line 33 of file l3gd20_regs.h.

◆ L3GD20_REG_CTRL_REG2

#define L3GD20_REG_CTRL_REG2   0x21

Definition at line 34 of file l3gd20_regs.h.

◆ L3GD20_REG_CTRL_REG3

#define L3GD20_REG_CTRL_REG3   0x22

Definition at line 35 of file l3gd20_regs.h.

◆ L3GD20_REG_CTRL_REG4

#define L3GD20_REG_CTRL_REG4   0x23

Definition at line 36 of file l3gd20_regs.h.

◆ L3GD20_REG_OUT_X_H

#define L3GD20_REG_OUT_X_H   0x29

Definition at line 39 of file l3gd20_regs.h.

◆ L3GD20_REG_OUT_X_L

#define L3GD20_REG_OUT_X_L   0x28

Definition at line 38 of file l3gd20_regs.h.

◆ L3GD20_REG_OUT_Y_H

#define L3GD20_REG_OUT_Y_H   0x2B

Definition at line 41 of file l3gd20_regs.h.

◆ L3GD20_REG_OUT_Y_L

#define L3GD20_REG_OUT_Y_L   0x2A

Definition at line 40 of file l3gd20_regs.h.

◆ L3GD20_REG_OUT_Z_H

#define L3GD20_REG_OUT_Z_H   0x2D

Definition at line 43 of file l3gd20_regs.h.

◆ L3GD20_REG_OUT_Z_L

#define L3GD20_REG_OUT_Z_L   0x2C

Definition at line 42 of file l3gd20_regs.h.

◆ L3GD20_REG_STATUS_REG

#define L3GD20_REG_STATUS_REG   0x27

Definition at line 37 of file l3gd20_regs.h.

◆ L3GD20_REG_WHO_AM_I

#define L3GD20_REG_WHO_AM_I   0x0F

Definition at line 32 of file l3gd20_regs.h.

◆ L3GD20_WHO_AM_I

#define L3GD20_WHO_AM_I   0xD4

L3GD20 device identifier contained in L3GD20_REG_WHO_AM_I.

Definition at line 46 of file l3gd20_regs.h.

◆ L3GD20_Xen

#define L3GD20_Xen   (1 << 0)

Definition at line 53 of file l3gd20_regs.h.

◆ L3GD20_Yen

#define L3GD20_Yen   (1 << 1)

Definition at line 54 of file l3gd20_regs.h.

◆ L3GD20_Zen

#define L3GD20_Zen   (1 << 2)

Definition at line 55 of file l3gd20_regs.h.

Enumeration Type Documentation

◆ L3gd20DRBW

enum L3gd20DRBW
Enumerator
L3GD20_DRBW_95Hz_12_5BW 
L3GD20_DRBW_95Hz_25BW 
L3GD20_DRBW_95Hz_25BW2 
L3GD20_DRBW_95Hz_25BW3 
L3GD20_DRBW_190Hz_12_5BW 
L3GD20_DRBW_190Hz_25BW 
L3GD20_DRBW_190Hz_50BW 
L3GD20_DRBW_190Hz_70BW 
L3GD20_DRBW_380Hz_20BW 
L3GD20_DRBW_380Hz_25BW 
L3GD20_DRBW_380Hz_50BW 
L3GD20_DRBW_380Hz_100BW 
L3GD20_DRBW_760Hz_30BW 
L3GD20_DRBW_760Hz_35BW 
L3GD20_DRBW_760Hz_50BW 
L3GD20_DRBW_760Hz_100BW 

Definition at line 60 of file l3gd20_regs.h.

◆ L3gd20FullScale

Enumerator
L3GD20_FS_250dps 
L3GD20_FS_500dps 
L3GD20_FS_2000dps 
L3GD20_FS_2000dps2 

Definition at line 79 of file l3gd20_regs.h.