/*
 * env_sensors.h
 *
 *  Created on: 13 mai 2023
 *      Author: xavie
 */

#ifndef INC_ENV_SENSORS_H_
#define INC_ENV_SENSORS_H_

#include <stdint.h>

#define ENV_SENSORS_NBR	10

typedef struct env_sensor_def {
	uint16_t can_address;
	uint8_t param_id;
} env_sensors_t;

typedef struct {
uint16_t nbr;
env_sensors_t env_sensors[ENV_SENSORS_NBR];
} FLASH_ENV_SENSORS __attribute__((__aligned__(8)));

typedef enum {
  NONE,
  DRIZZLING,
  SMALL_DROP,
  BIG_DROP,
  REGULAR,
  SHOWER
} RAINING_CONDITIONS;

extern FLASH_ENV_SENSORS env_sensors_tab;

#endif /* INC_ENV_SENSORS_H_ */
