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
ms2100.h File Reference
#include "std.h"
#include "peripherals/ms2100_arch.h"
+ Include dependency graph for ms2100.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#define MS2100_NB_AXIS   3
#define MS2100_IDLE   0
#define MS2100_BUSY   1
#define MS2100_SENDING_REQ   2
#define MS2100_WAITING_EOC   3
#define MS2100_GOT_EOC   4
#define MS2100_READING_RES   5
#define MS2100_DATA_AVAILABLE   6
#define MS2100_DIVISOR_128   2
#define MS2100_DIVISOR_256   3
#define MS2100_DIVISOR_512   4
#define MS2100_DIVISOR_1024   5
#define MS2100_DIVISOR   MS2100_DIVISOR_1024


void ms2100_init (void)
void ms2100_read (void)
void ms2100_reset (void)
void ms2100_arch_init (void)


volatile uint8_t ms2100_status
volatile int16_t ms2100_values [MS2100_NB_AXIS]

Macro Definition Documentation

#define MS2100_BUSY   1

Definition at line 36 of file ms2100.h.

#define MS2100_DATA_AVAILABLE   6

Definition at line 41 of file ms2100.h.

Referenced by main_event_task().

#define MS2100_DIVISOR   MS2100_DIVISOR_1024

Definition at line 56 of file ms2100.h.

#define MS2100_DIVISOR_1024   5

Definition at line 54 of file ms2100.h.

#define MS2100_DIVISOR_128   2

Definition at line 51 of file ms2100.h.

#define MS2100_DIVISOR_256   3

Definition at line 52 of file ms2100.h.

#define MS2100_DIVISOR_512   4

Definition at line 53 of file ms2100.h.

#define MS2100_GOT_EOC   4

Definition at line 39 of file ms2100.h.

#define MS2100_IDLE   0
#define MS2100_NB_AXIS   3

Definition at line 29 of file ms2100.h.

Referenced by ms2100_init().

#define MS2100_READING_RES   5

Definition at line 40 of file ms2100.h.

#define MS2100_SENDING_REQ   2

Definition at line 37 of file ms2100.h.

#define MS2100_WAITING_EOC   3

Definition at line 38 of file ms2100.h.

Referenced by dma1_c4_irq_handler(), and main_periodic_task().

Function Documentation

void ms2100_arch_init ( void  )

Definition at line 39 of file ms2100_arch.c.

References ms2100_cur_axe, Ms2100Set, and Ms2100Unselect.

Referenced by ms2100_init().

+ Here is the caller graph for this function:

void ms2100_init ( void  )

Definition at line 29 of file ms2100.c.

References ms2100_arch_init(), MS2100_IDLE, MS2100_NB_AXIS, ms2100_status, and ms2100_values.

Referenced by imu_impl_init(), and main_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ms2100_read ( void  )
void ms2100_reset ( void  )

Definition at line 39 of file ms2100.c.

References MS2100_IDLE, and ms2100_status.

Variable Documentation

volatile uint8_t ms2100_status
volatile int16_t ms2100_values[MS2100_NB_AXIS]

Definition at line 27 of file ms2100.c.

Referenced by main_event_task(), and ms2100_init().