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

STM32 specific functions for the ms2100 magnetic sensor from PNI. More...

#include <libopencm3/stm32/gpio.h>
#include "mcu_periph/spi.h"
+ Include dependency graph for ms2100_arch.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define Ms2100HasEOC()   (gpio_get(GPIOB, GPIO5) != 0)
 

Functions

static void Ms2100Reset (void)
 Here Reset indicates the Ms2100 is in normal state, i.e. More...
 
static void Ms2100Set (void)
 Here Set indicates the Ms2100 is in reset state, i.e. More...
 
void ms2100_reset_cb (struct spi_transaction *t)
 Reset callback. More...
 

Detailed Description

STM32 specific functions for the ms2100 magnetic sensor from PNI.

Definition in file ms2100_arch.h.

Macro Definition Documentation

#define Ms2100HasEOC ( )    (gpio_get(GPIOB, GPIO5) != 0)

Definition at line 52 of file ms2100_arch.h.

Function Documentation

void ms2100_reset_cb ( struct spi_transaction t)

Reset callback.

called before spi transaction and after slave select

Definition at line 71 of file ms2100_arch.c.

References cpu_ticks_of_nsec(), Ms2100Reset, Ms2100Set, and T0TC.

Referenced by ms2100_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void Ms2100Reset ( void  )
inlinestatic

Here Reset indicates the Ms2100 is in normal state, i.e.

the reset line is driven low (i.e. the GPIO is "reset")

Definition at line 38 of file ms2100_arch.h.

References GPIO13.

static void Ms2100Set ( void  )
inlinestatic

Here Set indicates the Ms2100 is in reset state, i.e.

the reset line is driven high (i.e. the GPIO is "set")

Definition at line 47 of file ms2100_arch.h.

References GPIO13.