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
i2c_transaction Struct Reference

I2C transaction structure. More...

#include <i2c.h>

Data Fields

enum I2CTransactionType type
 Transaction type. More...
 
uint8_t slave_addr
 Slave address. More...
 
uint16_t len_r
 Number of bytes to read/receive. More...
 
uint8_t len_w
 Number of bytes to write/transmit. More...
 
volatile uint8_t buf [I2C_BUF_LEN]
 Transaction buffer With I2C_BUF_LEN number of bytes. More...
 
enum I2CTransactionStatus status
 Transaction status. More...
 

Detailed Description

I2C transaction structure.

Use this structure to store a request of I2C transaction and submit it using one of the convenience functions (i2c_receive, i2c_transmit or i2c_transceive) or the i2c_submit function.

Definition at line 93 of file i2c.h.

Field Documentation

volatile uint8_t i2c_transaction::buf[I2C_BUF_LEN]

Transaction buffer With I2C_BUF_LEN number of bytes.

Must be able to hold tranmitted + received bytes.

Definition at line 122 of file i2c.h.

Referenced by actuators_asctec_set(), actuators_asctec_v2_set(), actuators_mkk_set(), actuators_mkk_v2_set(), actuators_skiron_set(), ads1114_read(), adxl345_i2c_event(), adxl345_i2c_read(), adxl345_i2c_tx_reg(), airspeed_amsys_read_event(), airspeed_ets_read_event(), ami601_read(), ArduIMU_event(), ArduIMU_init(), ArduIMU_periodicGPS(), aspirin2_subsystem_event(), atmega_i2c_cam_ctrl_event(), atmega_i2c_cam_ctrl_send(), baro_amsys_read_event(), baro_board_read_from_register(), baro_board_send_reset(), baro_board_set_current_register(), baro_board_write_to_register(), baro_ets_read_event(), baro_hca_read_event(), baro_scp_event(), baro_scp_periodic(), baro_scp_start_high_res_measurement(), bmp085_event(), bmp085_periodic(), bmp085_read_eeprom_calib(), charge_sens_event(), config_mkk_v2_crc(), config_mkk_v2_parse_eeprom(), config_mkk_v2_read_eeprom(), config_mkk_v2_send_eeprom(), dpicco_event(), dust_gp2y_event(), ezcurrent_read_event(), geiger_counter_event(), generic_com_periodic(), hmc5843_idle_task(), hmc5843_periodic(), hmc58xx_event(), hmc58xx_i2c_tx_reg(), hmc58xx_read(), humid_htm_event(), humid_sht_event_i2c(), humid_sht_periodic_i2c(), i2c_abuse_send_transaction(), I2cAutomaton(), IMU_Daten_verarbeiten(), imu_impl_init(), imu_periodic(), infrared_i2c_update(), infrared_i2c_ver_event(), ir_mlx_event(), ir_mlx_periodic(), itg3200_event(), itg3200_i2c_tx_reg(), itg3200_read(), l3g4200_event(), l3g4200_i2c_tx_reg(), l3g4200_read(), lisa_l_baro_event(), lm75_event(), lm75_periodic(), lsm303dlhc_event(), lsm303dlhc_i2c_tx_reg(), lsm303dlhc_read(), mpl3115_event(), mpl3115_read(), mpl3115_send_config(), MPPT_ask(), MPPT_periodic(), mpu60x0_i2c_event(), mpu60x0_i2c_read(), mpu60x0_i2c_write_to_reg(), ms5611_i2c_event(), ms5611_i2c_periodic_check(), ms5611_i2c_start_configure(), ms5611_i2c_start_conversion(), pbn_periodic(), pbn_read_event(), PCAP01_Control(), pcap01_event(), pcap01readRegister(), pcap01writeRegister(), readPCAP01_SRAM(), send_config(), srf08_copy(), srf08_init(), srf08_initiate_ranging(), srf08_read_register(), srf08_receive(), stmi2c_read1(), stmi2c_read2(), stmi2c_readmany(), stmi2c_send(), stop_com(), temod_event(), tmp102_event(), tmp102_init(), tmp102_periodic(), wind_gfi_event(), wind_gfi_periodic(), and writePCAP01_SRAM().

enum I2CTransactionStatus i2c_transaction::status

Transaction status.

Definition at line 126 of file i2c.h.

Referenced by actuators_asctec_init(), actuators_asctec_set(), actuators_asctec_v2_init(), actuators_asctec_v2_set(), actuators_mkk_v2_init(), actuators_skiron_init(), ads1114_read(), adxl345_i2c_event(), adxl345_i2c_init(), adxl345_i2c_read(), adxl345_i2c_send_config(), adxl345_i2c_start_configure(), airspeed_amsys_init(), airspeed_amsys_read_event(), airspeed_amsys_read_periodic(), airspeed_ets_init(), airspeed_ets_read_event(), airspeed_ets_read_periodic(), ami601_init(), ArduIMU_event(), ArduIMU_init(), ArduIMU_periodic(), ArduIMU_periodicGPS(), aspirin2_subsystem_event(), atmega_i2c_cam_ctrl_event(), atmega_i2c_cam_ctrl_init(), baro_amsys_init(), baro_amsys_read_event(), baro_amsys_read_periodic(), baro_ets_init(), baro_ets_read_event(), baro_ets_read_periodic(), baro_hca_init(), baro_hca_read_event(), baro_hca_read_periodic(), baro_scp_event(), bmp085_event(), bmp085_init(), bmp085_read_eeprom_calib(), charge_sens_event(), config_mkk_v2_init(), config_mkk_v2_periodic_read_status(), dpicco_event(), dpicco_init(), dust_gp2y_event(), event_i2c_abuse_test(), ezcurrent_init(), ezcurrent_read_event(), ezcurrent_read_periodic(), geiger_counter_event(), generic_com_event(), generic_com_init(), generic_com_periodic(), hmc5843_idle_task(), hmc5843_init(), hmc5843_periodic(), hmc58xx_event(), hmc58xx_init(), hmc58xx_read(), hmc58xx_send_config(), hmc58xx_start_configure(), humid_htm_event(), humid_sht_event_i2c(), i2c_irq(), i2c_submit(), imu_impl_init(), infrared_i2c_init(), infrared_i2c_update(), infrared_i2c_ver_event(), init_i2c_abuse_test(), ir_mlx_event(), itg3200_event(), itg3200_init(), itg3200_read(), itg3200_send_config(), itg3200_start_configure(), l3g4200_event(), l3g4200_init(), l3g4200_read(), l3g4200_send_config(), l3g4200_start_configure(), lisa_l_baro_event(), lm75_event(), lm75_init(), lsm303dlhc_event(), lsm303dlhc_init(), lsm303dlhc_read(), lsm303dlhc_send_config(), lsm303dlhc_start_configure(), mpl3115_configure(), mpl3115_event(), mpl3115_init(), mpl3115_read(), mpl3115_send_config(), MPPT_periodic(), mpu60x0_i2c_event(), mpu60x0_i2c_init(), mpu60x0_i2c_read(), mpu60x0_i2c_start_configure(), ms5611_i2c_event(), ms5611_i2c_init(), ms5611_i2c_periodic_check(), ms5611_i2c_start_conversion(), pbn_read_event(), PCAP01_Control(), pcap01_event(), pcap01_init(), pcap01writeRegister(), readPCAP01_SRAM(), send_config(), srf08_event(), srf08_ping(), start_com(), stmi2c_read1(), stmi2c_read2(), stmi2c_readmany(), stmi2c_send(), temod_event(), temod_init(), tmp102_event(), wind_gfi_event(), wind_gfi_init(), and writePCAP01_SRAM().


The documentation for this struct was generated from the following file: