/*
 * sensors.h
 *
 *  Created on: 28.4.2014
 *      Author: Stefan
 */

#ifndef SENSORS_H_
#define SENSORS_H_

/* Includes ------------------------------------------------------------------*/
#include "system.h"

/* Public typedef ------------------------------------------------------------*/
typedef enum sensors_direction_en
{
    SENSORS_DIR_N = 0,
    SENSORS_DIR_NE,
    SENSORS_DIR_E,
    SENSORS_DIR_SE,
    SENSORS_DIR_S,
    SENSORS_DIR_SW,
    SENSORS_DIR_W,
    SENSORS_DIR_NW,
    SENSORS_DIR_ERR

} sensors_direction_t;

typedef struct sensors_measurement_struct_
{
    float temp;
    float humidity;
    float press;
    float rain;
    float wind_spd;
    sensors_direction_t wind_dir;
}sensors_measurement_t;

/* Public define -------------------------------------------------------------*/
/* Public macro --------------------------------------------------------------*/
/* Public variables ----------------------------------------------------------*/
/* Public functions ----------------------------------------------------------*/
bool_t sensors_start(
    void
);

bool_t sensors_get_current_measurement(
    sensors_measurement_t* buffer
);


#endif /* SENSORS_H_ */
