|
Paparazzi UAS
v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
|
#include <string.h>#include "modules/enose/enose.h"#include "mcu_periph/i2c.h"#include "mcu_periph/adc.h"#include <BOARD_CONFIG>#include "mcu_periph/uart.h"#include "pprzlink/messages.h"#include "subsystems/datalink/downlink.h"
Include dependency graph for enose.c:Go to the source code of this file.
Macros | |
| #define | ENOSE_SLAVE_ADDR 0xAE |
| #define | ENOSE_PWM_ADDR 0x06 |
| #define | ENOSE_DATA_ADDR 0x00 |
| #define | ENOSE_HEAT_INIT 237 |
Functions | |
| void | enose_init (void) |
| void | enose_set_heat (uint8_t no_sensor, uint8_t value) |
| void | enose_periodic (void) |
Variables | |
| uint8_t | enose_status |
| uint8_t | enose_heat [ENOSE_NB_SENSOR] |
| uint16_t | enose_val [ENOSE_NB_SENSOR] |
| uint16_t | enose_PID_val |
| static uint8_t | enose_conf_requested |
| static volatile bool | enose_i2c_done |
| static struct adc_buf | buf_PID |
| #define ENOSE_DATA_ADDR 0x00 |
Definition at line 17 of file enose.c.
Referenced by enose_periodic().
| #define ENOSE_HEAT_INIT 237 |
Definition at line 18 of file enose.c.
Referenced by enose_init().
| #define ENOSE_PWM_ADDR 0x06 |
Definition at line 16 of file enose.c.
Referenced by enose_periodic().
| #define ENOSE_SLAVE_ADDR 0xAE |
Definition at line 15 of file enose.c.
Referenced by enose_periodic().
| void enose_init | ( | void | ) |
Definition at line 25 of file enose.c.
References adc_buf_channel(), buf_PID, enose_conf_requested, enose_heat, ENOSE_HEAT_INIT, enose_i2c_done, ENOSE_IDLE, ENOSE_NB_SENSOR, enose_status, enose_val, and nominal_val.
Here is the call graph for this function:| void enose_periodic | ( | void | ) |
Definition at line 53 of file enose.c.
References adc_buf::av_nb_sample, buf_PID, DefaultChannel, DefaultDevice, enose_conf_requested, ENOSE_DATA_ADDR, enose_heat, enose_i2c_done, ENOSE_IDLE, ENOSE_MEASURING_RD, ENOSE_MEASURING_WR, ENOSE_NB_SENSOR, enose_PID_val, ENOSE_PWM_ADDR, ENOSE_SLAVE_ADDR, enose_status, enose_val, min_val, msg, nominal_val, adc_buf::sum, and val.
Definition at line 42 of file enose.c.
References enose_conf_requested, and enose_heat.
|
static |
Definition at line 22 of file enose.c.
Referenced by enose_init(), and enose_periodic().
|
static |
Definition at line 20 of file enose.c.
Referenced by enose_init(), enose_periodic(), and enose_set_heat().
| uint8_t enose_heat[ENOSE_NB_SENSOR] |
Definition at line 11 of file enose.c.
Referenced by enose_init(), enose_periodic(), and enose_set_heat().
|
static |
Definition at line 21 of file enose.c.
Referenced by enose_init(), and enose_periodic().
| uint16_t enose_PID_val |
Definition at line 13 of file enose.c.
Referenced by enose_periodic().
| uint8_t enose_status |
Definition at line 10 of file enose.c.
Referenced by enose_init(), and enose_periodic().
| uint16_t enose_val[ENOSE_NB_SENSOR] |
Definition at line 12 of file enose.c.
Referenced by enose_init(), and enose_periodic().