Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
micromag.h
Go to the documentation of this file.
1 #ifndef MICROMAG_H
2 #define MICROMAG_H
3 
4 
5 #include "std.h"
6 #define MM_NB_AXIS 3
7 
8 extern void micromag_init( void );
9 extern void micromag_read( void );
10 
11 extern void micromag_reset( void);
12 
13 #define MM_IDLE 0
14 #define MM_BUSY 1
15 #define MM_SENDING_REQ 2
16 #define MM_WAITING_EOC 3
17 #define MM_GOT_EOC 4
18 #define MM_READING_RES 5
19 #define MM_DATA_AVAILABLE 6
20 
21 extern volatile uint8_t micromag_status;
22 extern volatile int16_t micromag_values[MM_NB_AXIS];
23 
24 extern void micromag_hw_init( void );
25 #include "micromag_hw.h"
26 
27 
28 #endif /* MICROMAG_H */
volatile uint8_t micromag_status
Definition: micromag.c:3
volatile int16_t micromag_values[MM_NB_AXIS]
Definition: micromag.c:4
void micromag_read(void)
Definition: micromag_hw.c:34
void micromag_reset(void)
Definition: micromag.c:16
void micromag_init(void)
Definition: micromag.c:6
void micromag_hw_init(void)
signed short int16_t
Definition: types.h:17
#define MM_NB_AXIS
Definition: micromag.h:6
unsigned char uint8_t
Definition: types.h:14