![]() |
Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Driver for the ms2100 magnetic sensor from PNI. More...
Go to the source code of this file.
Macros | |
#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 |
#define | Int16FromBuf(_buf, _idx) ((int16_t)((_buf[_idx]<<8) | _buf[_idx+1])) |
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 | |
void | ms2100_event (struct Ms2100 *ms) |
Variables | |
struct Ms2100 | ms2100 |
Driver for the ms2100 magnetic sensor from PNI.
Definition in file ms2100.c.
#define MS2100_DIVISOR MS2100_DIVISOR_1024 |
Definition at line 105 of file ms2100.c.
References foo, Int16FromBuf, MS2100_DATA_AVAILABLE, MS2100_GOT_EOC, MS2100_IDLE, MS2100_READING_RES, spi_submit(), SPITransDone, SPITransFailed, and SPITransSuccess.
void ms2100_init | ( | struct Ms2100 * | ms, |
struct spi_periph * | spi_p, | ||
uint8_t | slave_idx | ||
) |
Definition at line 47 of file ms2100.c.
References foo, INT_VECT3_ZERO, ms2100_arch_init(), MS2100_IDLE, ms2100_reset_cb(), Ms2100::spi_p, SPICphaEdge1, SPICpolIdleLow, SPIDiv64, SPIDss8bit, SPIMSBFirst, SPISelectUnselect, SPITransDone, and spi_periph::status.
send request to read next axis
Definition at line 96 of file ms2100.c.
References foo, MS2100_DIVISOR, MS2100_SENDING_REQ, and spi_submit().
Referenced by ms2100_periodic().
struct Ms2100 ms2100 |
Definition at line 44 of file ms2100.c.
Referenced by exti9_5_isr().