Paparazzi UAS  v5.15_devel-47-g0391b4d
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
max1168.c File Reference
#include "peripherals/max1168.h"
#include "mcu_periph/spi.h"
#include "led.h"
+ Include dependency graph for max1168.c:

Go to the source code of this file.

Functions

void max1168_lock_cb (struct spi_transaction *t)
 
void max1168_init (void)
 
void max1168_read (void)
 
void max1168_event (void)
 

Variables

volatile uint8_t max1168_status
 
uint16_t max1168_values [MAX1168_NB_CHAN]
 
struct spi_transaction max1168_req_trans
 
struct spi_transaction max1168_read_trans
 
uint16_t max1168_conv_req
 

Function Documentation

void max1168_event ( void  )
void max1168_lock_cb ( struct spi_transaction t)

Definition at line 134 of file max1168.c.

References MAX1168_SLAVE_IDX, MAX1168_SPI_DEV, and spi_lock().

Referenced by max1168_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void max1168_read ( void  )

Definition at line 87 of file max1168.c.

References max1168_read_trans, max1168_req_trans, MAX1168_SENDING_REQ, MAX1168_SPI_DEV, max1168_status, and spi_submit().

+ Here is the call graph for this function:

Variable Documentation

uint16_t max1168_conv_req

Definition at line 33 of file max1168.c.

Referenced by max1168_init().

struct spi_transaction max1168_read_trans

Definition at line 31 of file max1168.c.

Referenced by max1168_event(), max1168_init(), and max1168_read().

struct spi_transaction max1168_req_trans

Definition at line 30 of file max1168.c.

Referenced by max1168_event(), max1168_init(), and max1168_read().

volatile uint8_t max1168_status
uint16_t max1168_values[MAX1168_NB_CHAN]

Definition at line 28 of file max1168.c.

Referenced by imu_b2_event(), imu_hbmini_event(), and max1168_init().