Paparazzi UAS  v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ist8310_regs.h File Reference

Register and address definitions for the IST8310 magnetometer. More...

+ 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

#define IST8310_ADDR   0x1C

Definition at line 31 of file ist8310_regs.h.

Referenced by mag_ist8310_module_init().

#define IST8310_CNTL1_ODR_100HZ   0x06

Definition at line 81 of file ist8310_regs.h.

#define IST8310_CNTL1_ODR_10HZ   0x03

Definition at line 78 of file ist8310_regs.h.

#define IST8310_CNTL1_ODR_20HZ   0x05

Definition at line 79 of file ist8310_regs.h.

#define IST8310_CNTL1_ODR_50HZ   0x07

Definition at line 80 of file ist8310_regs.h.

#define IST8310_CNTL1_ODR_SINGLE   0x01

Definition at line 77 of file ist8310_regs.h.

Referenced by ist8310_configure(), and ist8310_read().

#define IST8310_CNTL2_DREN   (1 << 3)

Definition at line 86 of file ist8310_regs.h.

#define IST8310_CNTL2_DRP   (1 << 2)

Definition at line 85 of file ist8310_regs.h.

#define IST8310_CNTL2_SRST   (1 << 0)

Definition at line 84 of file ist8310_regs.h.

#define IST8310_CNTL3_SAMPAVG_0   0x00

Definition at line 96 of file ist8310_regs.h.

#define IST8310_CNTL3_SAMPAVG_16   0x24

Definition at line 92 of file ist8310_regs.h.

Referenced by ist8310_configure().

#define IST8310_CNTL3_SAMPAVG_2   0x09

Definition at line 95 of file ist8310_regs.h.

#define IST8310_CNTL3_SAMPAVG_4   0x12

Definition at line 94 of file ist8310_regs.h.

#define IST8310_CNTL3_SAMPAVG_8   0x1B

Definition at line 93 of file ist8310_regs.h.

#define IST8310_CNTL4_SRPD   0xC0

Definition at line 99 of file ist8310_regs.h.

Referenced by ist8310_configure().

#define IST8310_REG_CNTL1   0x0A

Definition at line 43 of file ist8310_regs.h.

Referenced by ist8310_configure(), and ist8310_read().

#define IST8310_REG_CNTL2   0x0B

Definition at line 44 of file ist8310_regs.h.

#define IST8310_REG_CNTL3   0x41

Definition at line 48 of file ist8310_regs.h.

Referenced by ist8310_configure().

#define IST8310_REG_CNTL4   0x42

Definition at line 49 of file ist8310_regs.h.

Referenced by ist8310_configure().

#define IST8310_REG_DATA_XH   0x04

Definition at line 37 of file ist8310_regs.h.

#define IST8310_REG_DATA_XL   0x03

Definition at line 36 of file ist8310_regs.h.

Referenced by ist8310_event().

#define IST8310_REG_DATA_YL   0x05

Definition at line 38 of file ist8310_regs.h.

#define IST8310_REG_DATA_YM   0x06

Definition at line 39 of file ist8310_regs.h.

#define IST8310_REG_DATA_ZL   0x07

Definition at line 40 of file ist8310_regs.h.

#define IST8310_REG_DATA_ZM   0x08

Definition at line 41 of file ist8310_regs.h.

#define IST8310_REG_STAT1   0x02

Definition at line 35 of file ist8310_regs.h.

#define IST8310_REG_STAT2   0x09

Definition at line 42 of file ist8310_regs.h.

#define IST8310_REG_STR   0x0C

Definition at line 45 of file ist8310_regs.h.

#define IST8310_REG_TEMPH   0x1D

Definition at line 47 of file ist8310_regs.h.

#define IST8310_REG_TEMPL   0x1C

Definition at line 46 of file ist8310_regs.h.

#define IST8310_REG_WHO_AM_I   0x00

Definition at line 34 of file ist8310_regs.h.

#define IST8310_REG_Y11H   0x9D

Definition at line 51 of file ist8310_regs.h.

#define IST8310_REG_Y11L   0x9C

Definition at line 50 of file ist8310_regs.h.

#define IST8310_REG_Y12H   0x9F

Definition at line 53 of file ist8310_regs.h.

#define IST8310_REG_Y12L   0x9E

Definition at line 52 of file ist8310_regs.h.

#define IST8310_REG_Y13H   0xA1

Definition at line 55 of file ist8310_regs.h.

#define IST8310_REG_Y13L   0xA0

Definition at line 54 of file ist8310_regs.h.

#define IST8310_REG_Y21H   0xA3

Definition at line 57 of file ist8310_regs.h.

#define IST8310_REG_Y21L   0xA2

Definition at line 56 of file ist8310_regs.h.

#define IST8310_REG_Y22H   0xA5

Definition at line 59 of file ist8310_regs.h.

#define IST8310_REG_Y22L   0xA4

Definition at line 58 of file ist8310_regs.h.

#define IST8310_REG_Y23H   0xA7

Definition at line 61 of file ist8310_regs.h.

#define IST8310_REG_Y23L   0xA6

Definition at line 60 of file ist8310_regs.h.

#define IST8310_REG_Y31H   0xA9

Definition at line 63 of file ist8310_regs.h.

#define IST8310_REG_Y31L   0xA8

Definition at line 62 of file ist8310_regs.h.

#define IST8310_REG_Y32H   0xAB

Definition at line 65 of file ist8310_regs.h.

#define IST8310_REG_Y32L   0xAA

Definition at line 64 of file ist8310_regs.h.

#define IST8310_REG_Y33H   0xAD

Definition at line 67 of file ist8310_regs.h.

#define IST8310_REG_Y33L   0xAC

Definition at line 66 of file ist8310_regs.h.

#define IST8310_STAT1_DOR   (1 << 1)

Definition at line 71 of file ist8310_regs.h.

#define IST8310_STAT1_DRDY   (1 << 0)

Definition at line 70 of file ist8310_regs.h.

#define IST8310_STAT2_INT   (1 << 3)

Definition at line 74 of file ist8310_regs.h.

#define IST8310_STR_ENABLE   (1 << 6)

Definition at line 89 of file ist8310_regs.h.