Paparazzi UAS  v4.0.4_stable-3-gf39211a
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
micromag.h File Reference
#include "std.h"
#include "micromag_hw.h"
+ Include dependency graph for micromag.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MM_NB_AXIS   3
 
#define MM_IDLE   0
 
#define MM_BUSY   1
 
#define MM_SENDING_REQ   2
 
#define MM_WAITING_EOC   3
 
#define MM_GOT_EOC   4
 
#define MM_READING_RES   5
 
#define MM_DATA_AVAILABLE   6
 

Functions

void micromag_init (void)
 
void micromag_read (void)
 
void micromag_reset (void)
 
void micromag_hw_init (void)
 

Variables

volatile uint8_t micromag_status
 
volatile int16_t micromag_values [MM_NB_AXIS]
 

Macro Definition Documentation

#define MM_BUSY   1

Definition at line 14 of file micromag.h.

#define MM_DATA_AVAILABLE   6

Definition at line 19 of file micromag.h.

Referenced by micromag_event(), micromag_hw_feed_value(), and micromag_read().

#define MM_GOT_EOC   4

Definition at line 17 of file micromag.h.

Referenced by EXTINT_ISR(), micromag_periodic(), and micromag_read().

#define MM_IDLE   0
#define MM_NB_AXIS   3

Definition at line 6 of file micromag.h.

Referenced by micromag_init().

#define MM_READING_RES   5

Definition at line 18 of file micromag.h.

#define MM_SENDING_REQ   2

Definition at line 15 of file micromag.h.

#define MM_WAITING_EOC   3

Definition at line 16 of file micromag.h.

Referenced by micromag_periodic().

Function Documentation

void micromag_hw_init ( void  )

Definition at line 41 of file mag_micromag_fw_hw.c.

References _VIC_ADDR, _VIC_CNTL, EXTINT, EXTINT_ISR(), EXTMODE, EXTPOLAR, MmReset, MmUnselect, PINSEL1, SSP_ISR(), SSP_PINSEL1_MISO, SSP_PINSEL1_MOSI, SSP_PINSEL1_SCK, SSPCPSR, SSPCR0, SSPCR0_VAL, SSPCR1, SSPCR1_VAL, VIC_BIT, VIC_ENABLE, VIC_SPI1, VICIntEnable, and VICIntSelect.

Referenced by micromag_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void micromag_init ( void  )

Definition at line 6 of file micromag.c.

void micromag_read ( void  )

Definition at line 34 of file micromag_hw.c.

void micromag_reset ( void  )

Definition at line 16 of file micromag.c.

Variable Documentation

volatile uint8_t micromag_status

Definition at line 3 of file micromag.c.

volatile int16_t micromag_values[MM_NB_AXIS]

Definition at line 4 of file micromag.c.