Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
mag_micromag_fw.c File Reference
#include "modules/sensors/mag_micromag_fw.h"
#include "modules/sensors/mag_micromag_fw_hw.h"
#include "led.h"
#include "mcu_periph/uart.h"
#include "pprzlink/messages.h"
#include "subsystems/datalink/downlink.h"
+ Include dependency graph for mag_micromag_fw.c:

Go to the source code of this file.

Functions

void micromag_periodic (void)
 
void micromag_event (void)
 
void micromag_init (void)
 
void micromag_reset ()
 
void micromag_read ()
 

Variables

volatile uint8_t micromag_status
 
volatile int16_t micromag_values [MM_NB_AXIS]
 

Function Documentation

void micromag_event ( void  )
void micromag_init ( void  )

Definition at line 47 of file mag_micromag_fw.c.

References micromag_hw_init(), micromag_status, micromag_values, MM_IDLE, and MM_NB_AXIS.

+ Here is the call graph for this function:

void micromag_periodic ( void  )

Definition at line 13 of file mag_micromag_fw.c.

References micromag_status, MM_GOT_EOC, MM_IDLE, MM_WAITING_EOC, MmReadRes, and MmSendReq.

void micromag_read ( void  )

Definition at line 64 of file mag_micromag_fw.c.

References micromag_status, MM_DATA_AVAILABLE, MM_GOT_EOC, MM_IDLE, MmReadRes, and MmSendReq.

void micromag_reset ( void  )

Definition at line 59 of file mag_micromag_fw.c.

References micromag_status, and MM_IDLE.

Variable Documentation

volatile uint8_t micromag_status
volatile int16_t micromag_values[MM_NB_AXIS]

Definition at line 10 of file mag_micromag_fw.c.

Referenced by micromag_event(), and micromag_init().