/*
 * e_filtr2h.h
 *
 *  Created on: 22-04-2016
 *      Author: Krzysztof Jakubczyk
 */

#ifndef E_FILTR2H_IN_H_
#define E_FILTR2H_IN_H_

#include "tdefs.h"

struct e_filtr2h_logic
{
//	float wsp_filtr_sin_[SAMPLES_PER_MS*MAIN_FREQ_PERIOD_MS]; ///< wspolczynniki filtracji dla sinus z korekcja fazowa
//	float wsp_filtr_cos_[SAMPLES_PER_MS*MAIN_FREQ_PERIOD_MS]; ///< wspolczynniki filtracji dla cosinus z korekcja fazowa
	u16 *buf_ptr;
	float *esk_ptr;
	float *orta_ptr;
	float *ortb_ptr;
	struct analog_in_params *an_params;
};

struct e_filtr2h_io
{
	u32 buf_u16_ptr_in;
	u32 param_an_ptr_in;
	u32 orta_float_out;
	u32 ortb_float_out;
	u32 esk_float_out;
}__attribute__((__packed__));

struct e_filtr2h_params
{
}__attribute__((__packed__));

struct e_filtr2h_args
{
	struct e_filtr2h_io io;
	struct e_filtr2h_params params;
//	u16 crc;
}__attribute__((__packed__));

extern void e_filtr2h(void *args, void *logic);
extern int e_filtr2h_initlog(void *arguments, void *logic);

#endif /* E_FILTR2H_H_ */
