47 bool set_speed(
enum Device::Speed speed)
override {
return true; }
50 bool transfer(
const uint8_t *send, uint32_t send_len,
51 uint8_t *recv, uint32_t recv_len)
override;
54 uint32_t recv_len, uint8_t times)
override;
58 uint32_t period_usec, AP_HAL::Device::PeriodicCb)
override;
94 uint32_t bus_clock=400000,
95 bool use_smbus =
false,
96 uint32_t timeout_ms=4)
override;
static I2CDeviceManager * from(AP_HAL::I2CDeviceManager *i2c_mgr)
void set_address(uint8_t address) override
AP_HAL::Semaphore * get_semaphore() override
bool set_speed(enum Device::Speed speed) override
AP_HAL::OwnPtr< AP_HAL::Device > get_device(const char *name)
void set_split_transfers(bool set) override
void set_retries(uint8_t retries) override
static AP_HAL::OwnPtr< AP_HAL::Device > dev
bool read_registers_multiple(uint8_t first_reg, uint8_t *recv, uint32_t recv_len, uint8_t times) override
void set_retries(uint8_t retries)
AP_HAL::Device::PeriodicHandle register_periodic_callback(uint32_t period_usec, AP_HAL::Device::PeriodicCb) override
static const uint8_t num_buses
bool transfer(const uint8_t *send, uint32_t send_len, uint8_t *recv, uint32_t recv_len) override
bool adjust_periodic_callback(AP_HAL::Device::PeriodicHandle h, uint32_t period_usec) override
static I2CDevice * from(AP_HAL::I2CDevice *dev)
static DeviceBus businfo[num_buses]