Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
qr_code_spi_link.c File Reference
#include "qr_code_spi_link.h"
#include "subsystems/imu.h"
#include "mcu_periph/spi.h"
#include "mcu_periph/uart.h"
#include "messages.h"
#include "subsystems/datalink/downlink.h"
+ Include dependency graph for qr_code_spi_link.c:

Go to the source code of this file.

Functions

static void qr_code_spi_link_trans_cb (struct spi_transaction *trans)
 
void qr_code_spi_link_init (void)
 
void qr_code_spi_link_periodic (void)
 

Variables

struct spi_transaction qr_code_spi_link_transaction
 
static volatile bool_t qr_code_spi_data_available = FALSE
 
uint8_t testDataOut [3] = {1,2,3}
 
uint8_t testDataIn [3] = {9,9,9}
 

Function Documentation

void qr_code_spi_link_periodic ( void  )

Definition at line 57 of file qr_code_spi_link.c.

References DefaultChannel, DefaultDevice, FALSE, spi_transaction::input_buf, qr_code_spi_data_available, qr_code_spi_link_transaction, spi1, and spi_slave_register().

+ Here is the call graph for this function:

static void qr_code_spi_link_trans_cb ( struct spi_transaction trans)
static

Definition at line 68 of file qr_code_spi_link.c.

References qr_code_spi_data_available, and TRUE.

Referenced by qr_code_spi_link_init().

+ Here is the caller graph for this function:

Variable Documentation

volatile bool_t qr_code_spi_data_available = FALSE
static

Definition at line 35 of file qr_code_spi_link.c.

Referenced by qr_code_spi_link_periodic(), and qr_code_spi_link_trans_cb().

struct spi_transaction qr_code_spi_link_transaction

Definition at line 33 of file qr_code_spi_link.c.

Referenced by qr_code_spi_link_init(), and qr_code_spi_link_periodic().

uint8_t testDataIn[3] = {9,9,9}

Definition at line 38 of file qr_code_spi_link.c.

Referenced by qr_code_spi_link_init().

uint8_t testDataOut[3] = {1,2,3}

Definition at line 37 of file qr_code_spi_link.c.

Referenced by qr_code_spi_link_init().