Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
i2c_abuse_test.h File Reference

Total I2C Abuse: More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define I2C_ABUSE_SHORT_SCL_LED   2
 
#define I2C_ABUSE_SHORT_SDA_LED   3
 

Functions

void init_i2c_abuse_test (void)
 
void event_i2c_abuse_test (void)
 
void periodic_50Hz_i2c_abuse_test (void)
 

Detailed Description

Total I2C Abuse:

-all transaction types: T1 T2 T3 T4 R1 R2 R3 R4 T1R1 T2R1 T1R2 T1R3 T1R4 T1R5 T2R5 -all bitrates: 1k (way too slow) to 1M (way to fast) -occasional Short circuit (simulate bus capacitance or EMI errors) -variable bus load: from empty to full stack

-Connect LED to MosFet that pulls-down the SCL and SDA lines

Definition in file i2c_abuse_test.h.

Macro Definition Documentation

#define I2C_ABUSE_SHORT_SCL_LED   2

Definition at line 39 of file i2c_abuse_test.h.

#define I2C_ABUSE_SHORT_SDA_LED   3

Definition at line 43 of file i2c_abuse_test.h.

Function Documentation

void periodic_50Hz_i2c_abuse_test ( void  )

Definition at line 226 of file i2c_abuse_test.c.