Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
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

◆ micromag_event()

void micromag_event ( void  )

◆ micromag_init()

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:

◆ micromag_periodic()

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.

◆ micromag_read()

void micromag_read ( )

Definition at line 64 of file mag_micromag_fw.c.

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

◆ micromag_reset()

void micromag_reset ( )

Definition at line 59 of file mag_micromag_fw.c.

References micromag_status, and MM_IDLE.

Variable Documentation

◆ micromag_status

volatile uint8_t micromag_status

◆ micromag_values

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().