Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
ist8310_regs.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define IST8310_ADDR   0x1C
 
#define IST8310_REG_WHO_AM_I   0x00
 
#define IST8310_REG_STAT1   0x02
 
#define IST8310_REG_DATA_XL   0x03
 
#define IST8310_REG_DATA_XH   0x04
 
#define IST8310_REG_DATA_YL   0x05
 
#define IST8310_REG_DATA_YM   0x06
 
#define IST8310_REG_DATA_ZL   0x07
 
#define IST8310_REG_DATA_ZM   0x08
 
#define IST8310_REG_STAT2   0x09
 
#define IST8310_REG_CNTL1   0x0A
 
#define IST8310_REG_CNTL2   0x0B
 
#define IST8310_REG_STR   0x0C
 
#define IST8310_REG_TEMPL   0x1C
 
#define IST8310_REG_TEMPH   0x1D
 
#define IST8310_REG_CNTL3   0x41
 
#define IST8310_REG_CNTL4   0x42
 
#define IST8310_REG_Y11L   0x9C
 
#define IST8310_REG_Y11H   0x9D
 
#define IST8310_REG_Y12L   0x9E
 
#define IST8310_REG_Y12H   0x9F
 
#define IST8310_REG_Y13L   0xA0
 
#define IST8310_REG_Y13H   0xA1
 
#define IST8310_REG_Y21L   0xA2
 
#define IST8310_REG_Y21H   0xA3
 
#define IST8310_REG_Y22L   0xA4
 
#define IST8310_REG_Y22H   0xA5
 
#define IST8310_REG_Y23L   0xA6
 
#define IST8310_REG_Y23H   0xA7
 
#define IST8310_REG_Y31L   0xA8
 
#define IST8310_REG_Y31H   0xA9
 
#define IST8310_REG_Y32L   0xAA
 
#define IST8310_REG_Y32H   0xAB
 
#define IST8310_REG_Y33L   0xAC
 
#define IST8310_REG_Y33H   0xAD
 
#define IST8310_STAT1_DRDY   (1 << 0)
 
#define IST8310_STAT1_DOR   (1 << 1)
 
#define IST8310_STAT2_INT   (1 << 3)
 
#define IST8310_CNTL1_ODR_SINGLE   0x01
 
#define IST8310_CNTL1_ODR_10HZ   0x03
 
#define IST8310_CNTL1_ODR_20HZ   0x05
 
#define IST8310_CNTL1_ODR_50HZ   0x07
 
#define IST8310_CNTL1_ODR_100HZ   0x06
 
#define IST8310_CNTL2_SRST   (1 << 0)
 
#define IST8310_CNTL2_DRP   (1 << 2)
 
#define IST8310_CNTL2_DREN   (1 << 3)
 
#define IST8310_STR_ENABLE   (1 << 6)
 
#define IST8310_CNTL3_SAMPAVG_16   0x24
 
#define IST8310_CNTL3_SAMPAVG_8   0x1B
 
#define IST8310_CNTL3_SAMPAVG_4   0x12
 
#define IST8310_CNTL3_SAMPAVG_2   0x09
 
#define IST8310_CNTL3_SAMPAVG_0   0x00
 
#define IST8310_CNTL4_SRPD   0xC0
 

Detailed Description

Register and address definitions for the IST8310 magnetometer.

Definition in file ist8310_regs.h.

Macro Definition Documentation

◆ IST8310_ADDR

#define IST8310_ADDR   0x1C

Definition at line 31 of file ist8310_regs.h.

◆ IST8310_CNTL1_ODR_100HZ

#define IST8310_CNTL1_ODR_100HZ   0x06

Definition at line 81 of file ist8310_regs.h.

◆ IST8310_CNTL1_ODR_10HZ

#define IST8310_CNTL1_ODR_10HZ   0x03

Definition at line 78 of file ist8310_regs.h.

◆ IST8310_CNTL1_ODR_20HZ

#define IST8310_CNTL1_ODR_20HZ   0x05

Definition at line 79 of file ist8310_regs.h.

◆ IST8310_CNTL1_ODR_50HZ

#define IST8310_CNTL1_ODR_50HZ   0x07

Definition at line 80 of file ist8310_regs.h.

◆ IST8310_CNTL1_ODR_SINGLE

#define IST8310_CNTL1_ODR_SINGLE   0x01

Definition at line 77 of file ist8310_regs.h.

◆ IST8310_CNTL2_DREN

#define IST8310_CNTL2_DREN   (1 << 3)

Definition at line 86 of file ist8310_regs.h.

◆ IST8310_CNTL2_DRP

#define IST8310_CNTL2_DRP   (1 << 2)

Definition at line 85 of file ist8310_regs.h.

◆ IST8310_CNTL2_SRST

#define IST8310_CNTL2_SRST   (1 << 0)

Definition at line 84 of file ist8310_regs.h.

◆ IST8310_CNTL3_SAMPAVG_0

#define IST8310_CNTL3_SAMPAVG_0   0x00

Definition at line 96 of file ist8310_regs.h.

◆ IST8310_CNTL3_SAMPAVG_16

#define IST8310_CNTL3_SAMPAVG_16   0x24

Definition at line 92 of file ist8310_regs.h.

◆ IST8310_CNTL3_SAMPAVG_2

#define IST8310_CNTL3_SAMPAVG_2   0x09

Definition at line 95 of file ist8310_regs.h.

◆ IST8310_CNTL3_SAMPAVG_4

#define IST8310_CNTL3_SAMPAVG_4   0x12

Definition at line 94 of file ist8310_regs.h.

◆ IST8310_CNTL3_SAMPAVG_8

#define IST8310_CNTL3_SAMPAVG_8   0x1B

Definition at line 93 of file ist8310_regs.h.

◆ IST8310_CNTL4_SRPD

#define IST8310_CNTL4_SRPD   0xC0

Definition at line 99 of file ist8310_regs.h.

◆ IST8310_REG_CNTL1

#define IST8310_REG_CNTL1   0x0A

Definition at line 43 of file ist8310_regs.h.

◆ IST8310_REG_CNTL2

#define IST8310_REG_CNTL2   0x0B

Definition at line 44 of file ist8310_regs.h.

◆ IST8310_REG_CNTL3

#define IST8310_REG_CNTL3   0x41

Definition at line 48 of file ist8310_regs.h.

◆ IST8310_REG_CNTL4

#define IST8310_REG_CNTL4   0x42

Definition at line 49 of file ist8310_regs.h.

◆ IST8310_REG_DATA_XH

#define IST8310_REG_DATA_XH   0x04

Definition at line 37 of file ist8310_regs.h.

◆ IST8310_REG_DATA_XL

#define IST8310_REG_DATA_XL   0x03

Definition at line 36 of file ist8310_regs.h.

◆ IST8310_REG_DATA_YL

#define IST8310_REG_DATA_YL   0x05

Definition at line 38 of file ist8310_regs.h.

◆ IST8310_REG_DATA_YM

#define IST8310_REG_DATA_YM   0x06

Definition at line 39 of file ist8310_regs.h.

◆ IST8310_REG_DATA_ZL

#define IST8310_REG_DATA_ZL   0x07

Definition at line 40 of file ist8310_regs.h.

◆ IST8310_REG_DATA_ZM

#define IST8310_REG_DATA_ZM   0x08

Definition at line 41 of file ist8310_regs.h.

◆ IST8310_REG_STAT1

#define IST8310_REG_STAT1   0x02

Definition at line 35 of file ist8310_regs.h.

◆ IST8310_REG_STAT2

#define IST8310_REG_STAT2   0x09

Definition at line 42 of file ist8310_regs.h.

◆ IST8310_REG_STR

#define IST8310_REG_STR   0x0C

Definition at line 45 of file ist8310_regs.h.

◆ IST8310_REG_TEMPH

#define IST8310_REG_TEMPH   0x1D

Definition at line 47 of file ist8310_regs.h.

◆ IST8310_REG_TEMPL

#define IST8310_REG_TEMPL   0x1C

Definition at line 46 of file ist8310_regs.h.

◆ IST8310_REG_WHO_AM_I

#define IST8310_REG_WHO_AM_I   0x00

Definition at line 34 of file ist8310_regs.h.

◆ IST8310_REG_Y11H

#define IST8310_REG_Y11H   0x9D

Definition at line 51 of file ist8310_regs.h.

◆ IST8310_REG_Y11L

#define IST8310_REG_Y11L   0x9C

Definition at line 50 of file ist8310_regs.h.

◆ IST8310_REG_Y12H

#define IST8310_REG_Y12H   0x9F

Definition at line 53 of file ist8310_regs.h.

◆ IST8310_REG_Y12L

#define IST8310_REG_Y12L   0x9E

Definition at line 52 of file ist8310_regs.h.

◆ IST8310_REG_Y13H

#define IST8310_REG_Y13H   0xA1

Definition at line 55 of file ist8310_regs.h.

◆ IST8310_REG_Y13L

#define IST8310_REG_Y13L   0xA0

Definition at line 54 of file ist8310_regs.h.

◆ IST8310_REG_Y21H

#define IST8310_REG_Y21H   0xA3

Definition at line 57 of file ist8310_regs.h.

◆ IST8310_REG_Y21L

#define IST8310_REG_Y21L   0xA2

Definition at line 56 of file ist8310_regs.h.

◆ IST8310_REG_Y22H

#define IST8310_REG_Y22H   0xA5

Definition at line 59 of file ist8310_regs.h.

◆ IST8310_REG_Y22L

#define IST8310_REG_Y22L   0xA4

Definition at line 58 of file ist8310_regs.h.

◆ IST8310_REG_Y23H

#define IST8310_REG_Y23H   0xA7

Definition at line 61 of file ist8310_regs.h.

◆ IST8310_REG_Y23L

#define IST8310_REG_Y23L   0xA6

Definition at line 60 of file ist8310_regs.h.

◆ IST8310_REG_Y31H

#define IST8310_REG_Y31H   0xA9

Definition at line 63 of file ist8310_regs.h.

◆ IST8310_REG_Y31L

#define IST8310_REG_Y31L   0xA8

Definition at line 62 of file ist8310_regs.h.

◆ IST8310_REG_Y32H

#define IST8310_REG_Y32H   0xAB

Definition at line 65 of file ist8310_regs.h.

◆ IST8310_REG_Y32L

#define IST8310_REG_Y32L   0xAA

Definition at line 64 of file ist8310_regs.h.

◆ IST8310_REG_Y33H

#define IST8310_REG_Y33H   0xAD

Definition at line 67 of file ist8310_regs.h.

◆ IST8310_REG_Y33L

#define IST8310_REG_Y33L   0xAC

Definition at line 66 of file ist8310_regs.h.

◆ IST8310_STAT1_DOR

#define IST8310_STAT1_DOR   (1 << 1)

Definition at line 71 of file ist8310_regs.h.

◆ IST8310_STAT1_DRDY

#define IST8310_STAT1_DRDY   (1 << 0)

Definition at line 70 of file ist8310_regs.h.

◆ IST8310_STAT2_INT

#define IST8310_STAT2_INT   (1 << 3)

Definition at line 74 of file ist8310_regs.h.

◆ IST8310_STR_ENABLE

#define IST8310_STR_ENABLE   (1 << 6)

Definition at line 89 of file ist8310_regs.h.