Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
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

◆ max1168_event()

void max1168_event ( void  )

◆ max1168_init()

◆ max1168_lock_cb()

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:

◆ max1168_read()

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

◆ max1168_conv_req

uint16_t max1168_conv_req

Definition at line 33 of file max1168.c.

Referenced by max1168_init().

◆ max1168_read_trans

struct spi_transaction max1168_read_trans

Definition at line 31 of file max1168.c.

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

◆ max1168_req_trans

struct spi_transaction max1168_req_trans

Definition at line 30 of file max1168.c.

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

◆ max1168_status

volatile uint8_t max1168_status

◆ max1168_values

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().