APM:Libraries
|
Go to the source code of this file.
Macros | |
#define | SCL_H {scl_port->BSRRL = scl_pin; } |
#define | SCL_L {scl_port->BSRRH = scl_pin; } |
#define | SDA_H {sda_port->BSRRL = sda_pin; } |
#define | SDA_L {sda_port->BSRRH = sda_pin; } |
#define | SCL_read ((scl_port->IDR & scl_pin)!=0) |
#define | SDA_read ((sda_port->IDR & sda_pin)!=0) |
#define | I2C_yield(x) hal_yield(x) |
#define | SI2C_BIT_TIME 8 |
#define | SI2C_PERIOD 2 |
#define | MAX_I2C_TIME 300 |
Functions | |
static void | delay_10us () |
Variables | |
const AP_HAL::HAL & | hal |
-*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- More... | |
Definition at line 88 of file tim_i2c.cpp.
#define MAX_I2C_TIME 300 |
Definition at line 565 of file tim_i2c.cpp.
Referenced by Soft_I2C::bus_reset().
#define SCL_H {scl_port->BSRRL = scl_pin; } |
Definition at line 79 of file tim_i2c.cpp.
Referenced by Soft_I2C::_start(), Soft_I2C::bus_reset(), Soft_I2C::init_hw(), Soft_I2C::tick(), and Soft_I2C::wait_done().
#define SCL_L {scl_port->BSRRH = scl_pin; } |
Definition at line 80 of file tim_i2c.cpp.
Referenced by Soft_I2C::bus_reset(), Soft_I2C::tick(), and Soft_I2C::wait_done().
#define SCL_read ((scl_port->IDR & scl_pin)!=0) |
Definition at line 85 of file tim_i2c.cpp.
Referenced by Soft_I2C::_start(), Soft_I2C::bus_reset(), Soft_I2C::tick(), and Soft_I2C::wait_done().
#define SDA_H {sda_port->BSRRL = sda_pin; } |
Definition at line 82 of file tim_i2c.cpp.
Referenced by Soft_I2C::_start(), Soft_I2C::bus_reset(), Soft_I2C::init_hw(), Soft_I2C::tick(), and Soft_I2C::wait_done().
#define SDA_L {sda_port->BSRRH = sda_pin; } |
Definition at line 83 of file tim_i2c.cpp.
Referenced by Soft_I2C::bus_reset(), Soft_I2C::tick(), and Soft_I2C::wait_done().
#define SDA_read ((sda_port->IDR & sda_pin)!=0) |
Definition at line 86 of file tim_i2c.cpp.
Referenced by Soft_I2C::_start(), Soft_I2C::bus_reset(), Soft_I2C::tick(), and Soft_I2C::wait_done().
#define SI2C_BIT_TIME 8 |
Definition at line 90 of file tim_i2c.cpp.
Referenced by Soft_I2C::wait_done().
#define SI2C_PERIOD 2 |
Referenced by Soft_I2C::_start().
|
static |
Definition at line 102 of file tim_i2c.cpp.
Referenced by Soft_I2C::bus_reset().
const AP_HAL::HAL& hal |
-*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
Definition at line 14 of file AC_PID_test.cpp.