Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ms2100.h File Reference

Driver for the ms2100 magnetic sensor from PNI. More...

#include "std.h"
#include "mcu_periph/spi.h"
#include "math/pprz_algebra_int.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.

Data Structures

struct  Ms2100
 

Enumerations

enum  Ms2100Status {
  MS2100_IDLE, MS2100_SENDING_REQ, MS2100_GOT_EOC, MS2100_READING_RES,
  MS2100_DATA_AVAILABLE
}
 

Functions

void ms2100_init (struct Ms2100 *ms, struct spi_periph *spi_p, uint8_t slave_idx)
 
void ms2100_read (struct Ms2100 *ms)
 send request to read next axis More...
 
void ms2100_event (struct Ms2100 *ms)
 
static void ms2100_periodic (struct Ms2100 *ms)
 
void ms2100_arch_init (void)
 

Variables

struct Ms2100 ms2100
 

Detailed Description

Driver for the ms2100 magnetic sensor from PNI.

Definition in file ms2100.h.

Enumeration Type Documentation

Enumerator
MS2100_IDLE 
MS2100_SENDING_REQ 
MS2100_GOT_EOC 
MS2100_READING_RES 
MS2100_DATA_AVAILABLE 

Definition at line 36 of file ms2100.h.

Function Documentation

void ms2100_arch_init ( void  )
static void ms2100_periodic ( struct Ms2100 ms)
inlinestatic

Definition at line 65 of file ms2100.h.

References MS2100_IDLE, ms2100_read(), and Ms2100::status.

Referenced by imu_periodic().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ms2100_read ( struct Ms2100 ms)

send request to read next axis

Definition at line 95 of file ms2100.c.

References Ms2100::cur_axe, MS2100_DIVISOR, MS2100_SENDING_REQ, Ms2100::req_buf, Ms2100::req_trans, Ms2100::spi_p, spi_submit(), and Ms2100::status.

Referenced by ms2100_periodic().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

struct Ms2100 ms2100

Definition at line 44 of file ms2100.c.

Referenced by exti9_5_isr(), EXTINT_ISR(), imu_impl_init(), and imu_periodic().