ACwing FC firmware
STM32WB55: attitude IEKF, altitude Kalman filter, flight core, protocol v2
Loading...
Searching...
No Matches
ext_i2c.h File Reference

HAL binding of the expansion (Qwiic) devices on I2C1. More...

#include "vl53l1x.h"
#include "sensor_bus.h"
Include dependency graph for ext_i2c.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void ext_i2c_tof_bus (vl53_bus_t *bus, uint8_t addr7)
 16-bit registers
 
void ext_i2c_flow_bus (sensor_bus_t *bus, uint8_t addr7)
 8-bit registers

 

Detailed Description

HAL binding of the expansion (Qwiic) devices on I2C1.

Builds the bus descriptors of the portable drivers (vl53l1x, flow_bridge) on top of the STM32 HAL. Every transaction takes the I2C lock of imu_i2c.c (priority inheritance): on the bench the IMU shares the bus; on the ACwing FC rev A the IMU is on SPI and the lock is uncontended.

Definition in file ext_i2c.h.

Function Documentation

◆ ext_i2c_tof_bus()

void ext_i2c_tof_bus ( vl53_bus_t *  bus,
uint8_t  addr7 
)

16-bit registers

Definition at line 29 of file ext_i2c.c.

References b, dly(), rd16(), and wr16().

Referenced by ext_sens_start().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ext_i2c_flow_bus()

void ext_i2c_flow_bus ( sensor_bus_t *  bus,
uint8_t  addr7 
)

8-bit registers

Definition at line 34 of file ext_i2c.c.

References b, dly(), rd8(), and wr8().

Referenced by ext_sens_start().

Here is the call graph for this function:
Here is the caller graph for this function: