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
infrared_i2c.h File Reference
#include "std.h"
#include "generated/airframe.h"
#include "subsystems/sensors/infrared.h"
#include "mcu_periph/i2c.h"
+ Include dependency graph for infrared_i2c.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define infrared_i2cEvent()
 
#define infrared_i2cDownlink()   DOWNLINK_SEND_DEBUG_IR_I2C(DefaultChannel, DefaultDevice, &ir_i2c.ir1, &ir_i2c.ir2, &ir_i2c.ir3)
 
#define infrared_i2c_SetConfWord(_v)
 

Functions

void infrared_i2c_init (void)
 Initialisation. More...
 
void infrared_i2c_update (void)
 
void infrared_i2c_hor_event (void)
 
void infrared_i2c_ver_event (void)
 

Variables

struct Infrared_raw ir_i2c
 
bool ir_i2c_data_hor_available
 
bool ir_i2c_data_ver_available
 
uint8_t ir_i2c_conf_word
 
bool ir_i2c_conf_hor_done
 
bool ir_i2c_conf_ver_done
 
struct i2c_transaction irh_trans irv_trans
 

Macro Definition Documentation

#define infrared_i2c_SetConfWord (   _v)
Value:
{ \
}
uint8_t ir_i2c_conf_word
Definition: infrared_i2c.c:50
bool ir_i2c_conf_hor_done
Definition: infrared_i2c.c:51
bool ir_i2c_conf_ver_done
Definition: infrared_i2c.c:51

Definition at line 54 of file infrared_i2c.h.

#define infrared_i2cDownlink ( )    DOWNLINK_SEND_DEBUG_IR_I2C(DefaultChannel, DefaultDevice, &ir_i2c.ir1, &ir_i2c.ir2, &ir_i2c.ir3)

Definition at line 52 of file infrared_i2c.h.

#define infrared_i2cEvent ( )
Value:
{ \
if (irh_trans.status == I2CTransSuccess) infrared_i2c_hor_event(); \
}
status
Definition: anemotaxis.c:10
transaction successfully finished by I2C driver
Definition: i2c.h:57
void infrared_i2c_hor_event(void)
Definition: infrared_i2c.c:133
struct i2c_transaction irh_trans irv_trans
Definition: infrared_i2c.c:67
void infrared_i2c_ver_event(void)
Definition: infrared_i2c.c:195
if(PrimarySpektrumState.SpektrumTimer)

Definition at line 47 of file infrared_i2c.h.

Referenced by infrared_event().

Function Documentation

void infrared_i2c_init ( void  )

Initialisation.

Definition at line 87 of file infrared_i2c.c.

References I2CTransDone, infrared_struct_init(), ir_i2c_conf_hor_done, ir_i2c_conf_ver_done, ir_i2c_conf_word, ir_i2c_data_hor_available, ir_i2c_data_ver_available, ir_i2c_hor_status, IR_I2C_IDLE, irv_trans, and i2c_transaction::status.

Referenced by infrared_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

struct Infrared_raw ir_i2c

Definition at line 48 of file infrared_i2c.c.

Referenced by infrared_i2c_hor_event(), and infrared_i2c_ver_event().

bool ir_i2c_conf_hor_done

Definition at line 51 of file infrared_i2c.c.

Referenced by infrared_i2c_hor_event(), infrared_i2c_init(), and infrared_i2c_update().

bool ir_i2c_conf_ver_done

Definition at line 51 of file infrared_i2c.c.

Referenced by infrared_i2c_init(), infrared_i2c_update(), and infrared_i2c_ver_event().

uint8_t ir_i2c_conf_word
bool ir_i2c_data_hor_available
bool ir_i2c_data_ver_available
struct i2c_transaction irh_trans irv_trans

Definition at line 67 of file infrared_i2c.c.

Referenced by infrared_i2c_init(), infrared_i2c_update(), and infrared_i2c_ver_event().