Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
i2c_abuse_test.c File Reference
#include "i2c_abuse_test.h"
#include "led.h"
#include "mcu_periph/i2c.h"
+ Include dependency graph for i2c_abuse_test.c:

Go to the source code of this file.

Functions

void init_i2c_abuse_test (void)
 
static void i2c_abuse_send_transaction (uint8_t _init)
 
void event_i2c_abuse_test (void)
 
void periodic_50Hz_i2c_abuse_test (void)
 

Variables

struct i2c_transaction i2c_test1
 
struct i2c_transaction i2c_test2
 
volatile uint8_t i2c_abuse_test_counter = 0
 
volatile uint32_t i2c_abuse_test_bitrate = 1000
 

Function Documentation

static void i2c_abuse_send_transaction ( uint8_t  _init)
static

Definition at line 49 of file i2c_abuse_test.c.

References i2c_transaction::buf, i2c_submit(), i2c_test1, I2CTransRx, I2CTransTx, I2CTransTxRx, i2c_transaction::len_r, i2c_transaction::len_w, i2c_transaction::slave_addr, and i2c_transaction::type.

Referenced by event_i2c_abuse_test().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void periodic_50Hz_i2c_abuse_test ( void  )

Definition at line 228 of file i2c_abuse_test.c.

Variable Documentation

volatile uint32_t i2c_abuse_test_bitrate = 1000

Definition at line 33 of file i2c_abuse_test.c.

Referenced by event_i2c_abuse_test(), and init_i2c_abuse_test().

volatile uint8_t i2c_abuse_test_counter = 0

Definition at line 32 of file i2c_abuse_test.c.

Referenced by event_i2c_abuse_test(), and init_i2c_abuse_test().

struct i2c_transaction i2c_test1
struct i2c_transaction i2c_test2

Definition at line 30 of file i2c_abuse_test.c.

Referenced by event_i2c_abuse_test(), and init_i2c_abuse_test().