Paparazzi UAS  v5.15_devel-81-gd13dafb
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
mag_hmc58xx.c File Reference

Module wrapper for Honeywell HMC5843 and HMC5883 magnetometers. More...

#include "modules/sensors/mag_hmc58xx.h"
#include "mcu_periph/uart.h"
#include "pprzlink/messages.h"
#include "subsystems/datalink/downlink.h"
#include "generated/airframe.h"
+ Include dependency graph for mag_hmc58xx.c:

Go to the source code of this file.

Macros

#define HMC58XX_CHAN_X   0
 
#define HMC58XX_CHAN_Y   1
 
#define HMC58XX_CHAN_Z   2
 
#define HMC58XX_CHAN_X_SIGN   +
 
#define HMC58XX_CHAN_Y_SIGN   +
 
#define HMC58XX_CHAN_Z_SIGN   +
 

Functions

void mag_hmc58xx_module_init (void)
 
void mag_hmc58xx_module_periodic (void)
 
void mag_hmc58xx_module_event (void)
 
void mag_hmc58xx_report (void)
 

Variables

struct Hmc58xx mag_hmc58xx
 

Detailed Description

Module wrapper for Honeywell HMC5843 and HMC5883 magnetometers.

Definition in file mag_hmc58xx.c.

Macro Definition Documentation

#define HMC58XX_CHAN_X   0

Definition at line 35 of file mag_hmc58xx.c.

Referenced by mag_hmc58xx_module_event(), and mag_hmc58xx_report().

#define HMC58XX_CHAN_X_SIGN   +

Definition at line 44 of file mag_hmc58xx.c.

Referenced by mag_hmc58xx_module_event(), and mag_hmc58xx_report().

#define HMC58XX_CHAN_Y   1

Definition at line 38 of file mag_hmc58xx.c.

Referenced by mag_hmc58xx_module_event(), and mag_hmc58xx_report().

#define HMC58XX_CHAN_Y_SIGN   +

Definition at line 47 of file mag_hmc58xx.c.

Referenced by mag_hmc58xx_module_event(), and mag_hmc58xx_report().

#define HMC58XX_CHAN_Z   2

Definition at line 41 of file mag_hmc58xx.c.

Referenced by mag_hmc58xx_module_event(), and mag_hmc58xx_report().

#define HMC58XX_CHAN_Z_SIGN   +

Definition at line 50 of file mag_hmc58xx.c.

Referenced by mag_hmc58xx_module_event(), and mag_hmc58xx_report().

Function Documentation

void mag_hmc58xx_module_init ( void  )

Definition at line 67 of file mag_hmc58xx.c.

References ANGLE_BFP_OF_REAL, HMC58XX_ADDR, hmc58xx_init(), int32_rmat_of_eulers, and mag_hmc58xx.

+ Here is the call graph for this function:

void mag_hmc58xx_module_periodic ( void  )

Definition at line 81 of file mag_hmc58xx.c.

References hmc58xx_periodic(), and mag_hmc58xx.

+ Here is the call graph for this function:

void mag_hmc58xx_report ( void  )

Variable Documentation