US – Code – Measure.h

/*
 * US_measure.h
 *
 * Created: 20-08-17 09:06:28
 *  Author: raspi.th.in
 */ 


#ifndef US_MEASURE_H_
#define US_MEASURE_H_
#include <inttypes.h>

typedef enum
{
	ONE,
	TWO,
	BOTH
	}
US_MEASURE_TYPE;
typedef enum
{
	US_OK,
	ERROR
	}
US_MEASURE_RESULT;


typedef struct
{
	uint16_t US_1;
	US_MEASURE_RESULT US1_status;
	uint16_t US_2;
	US_MEASURE_RESULT US2_status; 
	}
US_Measure_value;

void US_Do_measure(US_MEASURE_TYPE my_type);
uint8_t  US_Check_measure(US_Measure_value *my_result);
 
#endif /* US_MEASURE_H_ */