Skip to content

Commit f7d3e88

Browse files
author
dherrada
committed
Made doxygen pass
1 parent d16e560 commit f7d3e88

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

Adafruit_LIS2MDL.h

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,16 @@
1616
/*=========================================================================
1717
I2C ADDRESS/BITS
1818
-----------------------------------------------------------------------*/
19-
#define _ADDRESS_MAG 0x1E //< Default address
20-
#define _CHIP_ID 0x40 //< Chip ID from WHO_AM_I register
21-
#define LIS2MDL_MAG_LSB 1.5
22-
#define LIS2MDL_MILLIGAUSS_TO_MICROTESLA 0.1
19+
#define _ADDRESS_MAG 0x1E //!< Default address
20+
#define _CHIP_ID 0x40 //!< Chip ID from WHO_AM_I register
21+
#define LIS2MDL_MAG_LSB 1.5 //!< Sensitivity
22+
#define LIS2MDL_MILLIGAUSS_TO_MICROTESLA \
23+
0.1 //!< Conversion rate of Milligauss to Microtesla
2324
/*=========================================================================*/
2425

26+
/*!
27+
* @brief LIS2MDL I2C register address bits
28+
*/
2529
typedef enum {
2630
LIS2MDL_OFFSET_X_REG_L = 0x45,
2731
LIS2MDL_OFFSET_X_REG_H = 0x46,
@@ -46,14 +50,14 @@ typedef enum {
4650
} lis2mdl_register_t;
4751
/*=========================================================================*/
4852

49-
/*=========================================================================
50-
MAGNETOMETER UPDATE RATE SETTINGS
51-
-----------------------------------------------------------------------*/
53+
/*!
54+
* @brief Magnetometer update rate settings
55+
*/
5256
typedef enum {
53-
LIS2MDL_RATE_10_HZ, //< 10 Hz
54-
LIS2MDL_RATE_20_HZ, //< 20 Hz
55-
LIS2MDL_RATE_50_HZ, //< 50 Hz
56-
LIS2MDL_RATE_100_HZ, //< 100 Hz
57+
LIS2MDL_RATE_10_HZ, //!< 10 Hz
58+
LIS2MDL_RATE_20_HZ, //!< 20 Hz
59+
LIS2MDL_RATE_50_HZ, //!< 50 Hz
60+
LIS2MDL_RATE_100_HZ, //!< 100 Hz
5761
} lis2mdl_rate_t;
5862
/*=========================================================================*/
5963

0 commit comments

Comments
 (0)