15 #define ENOSE_SLAVE_ADDR 0xAE
16 #define ENOSE_PWM_ADDR 0x06
17 #define ENOSE_DATA_ADDR 0x00
18 #define ENOSE_HEAT_INIT 237
36 #ifdef ADC_CHANNEL_PID
50 #include "pprzlink/messages.h"
60 memcpy((
void *)i2c0_buf, msg,
sizeof(msg));
67 memcpy((
void *)i2c0_buf, msg,
sizeof(msg));
79 val = (i2c0_buf[2] << 8) | i2c0_buf[3];
83 val = (i2c0_buf[4] << 8) | i2c0_buf[5];
void enose_periodic(void)
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
void enose_set_heat(uint8_t no_sensor, uint8_t value)
static struct adc_buf buf_PID
uint16_t enose_val[ENOSE_NB_SENSOR]
#define ENOSE_MEASURING_RD
void adc_buf_channel(uint8_t adc_channel, struct adc_buf *s, uint8_t av_nb_sample)
Link between ChibiOS ADC drivers and Paparazzi adc_buffers.
arch independent ADC (Analog to Digital Converter) API
Generic interface for all ADC hardware drivers, independent from microcontroller architecture.
static uint8_t enose_conf_requested
#define DefaultChannel
SITL.
uint8_t enose_heat[ENOSE_NB_SENSOR]
Common code for AP and FBW telemetry.
uint8_t msg[10]
Buffer used for general comunication over SPI (out buffer)
#define ENOSE_MEASURING_WR
static volatile bool enose_i2c_done
Architecture independent I2C (Inter-Integrated Circuit Bus) API.