|
Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the source code of this file.
Macros | |
| #define | MAX1168_NB_CHAN 8 |
| #define | MAX1168_SLAVE_IDX SPI_SLAVE0 |
| #define | MAX1168_SPI_DEV spi1 |
| #define | MAX1168_CONF_CHANNEL 0x7 |
| Configure control register. | |
| #define | MAX1168_CONF_SCAN 0x1 |
| #define | MAX1168_CONF_REF 0x0 |
| #define | MAX1168_CONF_CLOCK 0x1 |
| #define | MAX1168_CONF_CR ((MAX1168_CONF_CHANNEL<<5)|(MAX1168_CONF_SCAN<<3)|(MAX1168_CONF_REF<<1)|(MAX1168_CONF_CLOCK)) |
| #define | MAX1168_IDLE 0 |
| #define | MAX1168_SENDING_REQ 1 |
| #define | MAX1168_GOT_EOC 2 |
| #define | MAX1168_READING_RES 3 |
| #define | MAX1168_DATA_AVAILABLE 4 |
| #define | Max1168Periodic() |
Functions | |
| void | max1168_init (void) |
| void | max1168_read (void) |
| void | max1168_event (void) |
| void | max1168_arch_init (void) |
Variables | |
| volatile uint8_t | max1168_status |
| uint16_t | max1168_values [MAX1168_NB_CHAN] |
| #define MAX1168_CONF_CHANNEL 0x7 |
| #define MAX1168_CONF_CR ((MAX1168_CONF_CHANNEL<<5)|(MAX1168_CONF_SCAN<<3)|(MAX1168_CONF_REF<<1)|(MAX1168_CONF_CLOCK)) |
Definition at line 53 of file max1168.h.
Referenced by max1168_init().
| #define MAX1168_DATA_AVAILABLE 4 |
Definition at line 63 of file max1168.h.
Referenced by max1168_event().
| #define MAX1168_GOT_EOC 2 |
Definition at line 61 of file max1168.h.
Referenced by max1168_event().
| #define MAX1168_IDLE 0 |
Definition at line 59 of file max1168.h.
Referenced by max1168_event(), and max1168_init().
| #define MAX1168_NB_CHAN 8 |
Definition at line 28 of file max1168.h.
Referenced by max1168_init().
| #define MAX1168_READING_RES 3 |
Definition at line 62 of file max1168.h.
Referenced by max1168_event().
| #define MAX1168_SENDING_REQ 1 |
Definition at line 60 of file max1168.h.
Referenced by max1168_read().
| #define MAX1168_SLAVE_IDX SPI_SLAVE0 |
Definition at line 31 of file max1168.h.
Referenced by max1168_event(), max1168_init(), and max1168_lock_cb().
| #define MAX1168_SPI_DEV spi1 |
Definition at line 35 of file max1168.h.
Referenced by max1168_event(), max1168_lock_cb(), and max1168_read().
| #define Max1168Periodic | ( | ) |
|
extern |
Definition at line 24 of file max1168_arch.c.
Referenced by max1168_init().
|
extern |
Definition at line 101 of file max1168.c.
References MAX1168_DATA_AVAILABLE, MAX1168_GOT_EOC, MAX1168_IDLE, max1168_read_trans, MAX1168_READING_RES, max1168_req_trans, MAX1168_SLAVE_IDX, MAX1168_SPI_DEV, max1168_status, spi_resume(), spi_slave_unselect(), SPITransDone, SPITransFailed, and SPITransSuccess.
|
extern |
Definition at line 40 of file max1168.c.
References max1168_arch_init(), MAX1168_CONF_CR, max1168_conv_req, MAX1168_IDLE, max1168_lock_cb(), MAX1168_NB_CHAN, max1168_read_trans, max1168_req_trans, MAX1168_SLAVE_IDX, max1168_status, max1168_values, SPICphaEdge1, SPICpolIdleLow, SPIDiv64, SPIDss16bit, SPIMSBFirst, SPISelect, SPITransDone, and SPIUnselect.
|
extern |
Definition at line 26 of file max1168_arch.c.
References max1168_read_trans, max1168_req_trans, MAX1168_SENDING_REQ, MAX1168_SPI_DEV, max1168_status, and spi_submit().
|
extern |
Definition at line 27 of file max1168.c.
Referenced by max1168_event(), max1168_init(), and max1168_read().
|
extern |
Definition at line 28 of file max1168.c.
Referenced by max1168_init().