Rev Author Line No. Line
3283 kakl 1 // i2c slave addresses
2 #define HMC5883L_WRT_ADDR 0x3C
3 #define HMC5883L_READ_ADDR 0x3D
4  
5 // Register addresses
6 #define HMC5883L_CFG_A_REG 0x00
7 #define HMC5883L_CFG_B_REG 0x01
8 #define HMC5883L_MODE_REG 0x02
9 #define HMC5883L_X_MSB_REG 0x03
10  
11 //Konstanty nastavujici rozsah
12 //pro void set_mag_roz (unsigned int8 h)
13 #define MAG_ROZ088 0x00
14 #define MAG_ROZ130 0x20
15 #define MAG_ROZ190 0x40
16 #define MAG_ROZ250 0x60
17 #define MAG_ROZ400 0x80
18 #define MAG_ROZ470 0xA0
19 #define MAG_ROZ560 0xC0
20 #define MAG_ROZ810 0xE0
21  
22  
23 #include "HMC5883L.c"