Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures 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 "messages.h"
#include "subsystems/datalink/downlink.h"
+ Include dependency graph for mag_hmc58xx.c:

Go to the source code of this file.

Macros

#define DOWNLINK_DEVICE   DOWNLINK_AP_DEVICE
 

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 DOWNLINK_DEVICE   DOWNLINK_AP_DEVICE

Definition at line 34 of file mag_hmc58xx.c.

Function Documentation

void mag_hmc58xx_module_event ( void  )

Definition at line 47 of file mag_hmc58xx.c.

References Hmc58xx::data_available, FALSE, hmc58xx_event(), mag_hmc58xx, and mag_hmc58xx_report().

+ Here is the call graph for this function:

void mag_hmc58xx_module_init ( void  )

Definition at line 39 of file mag_hmc58xx.c.

References HMC58XX_ADDR, hmc58xx_init(), and mag_hmc58xx.

+ Here is the call graph for this function:

void mag_hmc58xx_module_periodic ( void  )

Definition at line 43 of file mag_hmc58xx.c.

References hmc58xx_periodic(), and mag_hmc58xx.

+ Here is the call graph for this function:

void mag_hmc58xx_report ( void  )

Definition at line 57 of file mag_hmc58xx.c.

References Hmc58xx::data, DefaultChannel, DefaultDevice, mag_hmc58xx, Hmc58xx::vect, Int16Vect3::x, Int32Vect3::x, Int16Vect3::y, Int32Vect3::y, Int16Vect3::z, and Int32Vect3::z.

Referenced by mag_hmc58xx_module_event().

+ Here is the caller graph for this function:

Variable Documentation