|
Paparazzi UAS
v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
|
Driver for onboard MS5611 baro via I2C. More...
#include "subsystems/sensors/baro.h"#include "boards/bebop/baro_board.h"#include "peripherals/ms5611_i2c.h"#include "mcu_periph/sys_time.h"#include "led.h"#include "std.h"#include "subsystems/abi.h"#include "mcu_periph/uart.h"#include "pprzlink/messages.h"#include "subsystems/datalink/downlink.h"
Include dependency graph for baro_board_ms5611_i2c.c:Go to the source code of this file.
Macros | |
| #define | BB_MS5611_SLAVE_ADDR 0xEE |
| default i2c address when CSB is set to GND addr is 0xEE when CSB is set to VCC addr is 0xEC More... | |
| #define | BB_MS5611_TYPE_MS5607 FALSE |
| set to TRUE if baro is actually a MS5607 More... | |
Functions | |
| void | baro_init (void) |
| void | baro_periodic (void) |
| void | baro_event (void) |
Variables | |
| struct Ms5611_I2c | bb_ms5611 |
Driver for onboard MS5611 baro via I2C.
Definition in file baro_board_ms5611_i2c.c.
| #define BB_MS5611_SLAVE_ADDR 0xEE |
default i2c address when CSB is set to GND addr is 0xEE when CSB is set to VCC addr is 0xEC
Note: Aspirin 2.1 has CSB bound to GND.
Definition at line 57 of file baro_board_ms5611_i2c.c.
Referenced by baro_init().
| #define BB_MS5611_TYPE_MS5607 FALSE |
set to TRUE if baro is actually a MS5607
Definition at line 62 of file baro_board_ms5611_i2c.c.
Referenced by baro_init().
| void baro_event | ( | void | ) |
Definition at line 100 of file baro_board_ms5611_i2c.c.
| void baro_init | ( | void | ) |
Definition at line 69 of file baro_board_ms5611_i2c.c.
References BB_MS5611_SLAVE_ADDR, BB_MS5611_TYPE_MS5607, LED_OFF, and ms5611_i2c_init().
Here is the call graph for this function:| void baro_periodic | ( | void | ) |
Definition at line 78 of file baro_board_ms5611_i2c.c.
References bb_ms5611, Ms5611Data::c, Ms5611_I2c::data, DefaultChannel, DefaultDevice, Ms5611_I2c::initialized, ms5611_i2c_periodic(), and sys_time::nb_sec.
Here is the call graph for this function:| struct Ms5611_I2c bb_ms5611 |
Definition at line 66 of file baro_board_ms5611_i2c.c.
Referenced by baro_event(), and baro_periodic().