/*
 * elements.c
 *
 *  Created on: 08-04-2014
 *      Author: Krzysztof Jakubczyk
 */


#include "elements.h"

/* const */struct element_info log_elements[] =
				{
					/*	id, init_ptr, fun_ptr, fun_100hz_ptr, fun_20hz_ptr, args size, log size */
					 { 0, &klapacz_initlog, &klapacz, NULL, NULL, sizeof(struct klapacz_args), sizeof(struct klapacz_logic) },
					 { 1, &bin_in_initlog, &bin_in, NULL, NULL,sizeof(struct bin_in_args), sizeof(struct bin_in_logic) },
					 { 2, &relay_out_initlog,/*&relay_out*/NULL, NULL, NULL,sizeof(struct relay_out_args), sizeof(struct relay_out_logic) },
					 { 3, &nand_initlog,&nand, NULL, NULL,sizeof(struct nand_args), sizeof(struct nand_logic) },
					 { 4, &and_initlog,&and, NULL, NULL, sizeof(struct and_args), sizeof(struct and_logic) },
					 { 5, &nor_initlog,&nor, NULL, NULL, sizeof(struct nor_args), sizeof(struct nor_logic) },
					 { 6, &or_initlog,&or, NULL, NULL,sizeof(struct or_args), sizeof(struct or_logic) },
					 { 7, &xor_initlog,&xor, NULL, NULL, sizeof(struct xor_args), sizeof(struct xor_logic) },
					 { 8, &not_initlog,&not, NULL, NULL, sizeof(struct not_args), sizeof(struct not_logic) },
					 { 9, &tz_initlog,&tz, NULL, NULL, sizeof(struct tz_args), sizeof(struct tz_logic) },
					 { 10, &tp_initlog,&tp, NULL, NULL, sizeof(struct tp_args), sizeof(struct tp_logic) },
					 { 11, &analog_in_initlog,&analog_in, NULL, NULL, sizeof(struct analog_in_args), sizeof(struct analog_in_logic) },
					 { 12, &valf_gt_initlog,&valf_gt, NULL, NULL, sizeof(struct valf_gt_args), sizeof(struct valf_gt_logic) },
					 { 13, &e_filtr1h_initlog,&e_filtr1h, NULL, NULL, sizeof(struct e_filtr1h_args), sizeof(struct e_filtr1h_logic) },
					 { 14, &ov_1ph_initlog,&ov_1ph, &ov_1ph_100hz, NULL, sizeof(struct ov_1ph_args), sizeof(struct ov_1ph_logic) }, // I1ph>
					 { 15, &ov_1ph_initlog,&ov_1ph, &ov_1ph_100hz, NULL, sizeof(struct ov_1ph_args), sizeof(struct ov_1ph_logic) }, // U1ph>
					 { 16, &sr_initlog,&sr, NULL, NULL, sizeof(struct sr_args), sizeof(struct sr_logic) },
					 { 17, &under_1ph_initlog,&under_1ph, under_1ph_100hz, NULL, sizeof(struct under_1ph_args), sizeof(struct under_1ph_logic) }, // I1ph<
					 { 18, &under_1ph_initlog,&under_1ph, under_1ph_100hz, NULL, sizeof(struct under_1ph_args), sizeof(struct under_1ph_logic) }, // U1ph<
					 { 19, &event_initlog,NULL, NULL, NULL, sizeof(struct event_args), sizeof(struct event_logic) },
					 { 20, &virt_in_initlog,NULL, NULL, NULL, sizeof(struct virt_in_args),sizeof(struct virt_in_logic) },
					 { 21, &rec_bin_initlog,NULL, NULL, NULL, sizeof(struct rec_bin_args), sizeof(struct rec_bin_logic) },
					 { 22, &rec_an_initlog,NULL, NULL, NULL, sizeof(struct rec_an_args), sizeof(struct rec_an_logic) },
					 { 23, &dfr_initlog,&dfr, NULL, NULL, sizeof(struct dfr_args), sizeof(struct dfr_logic) },
					 { 24, &edge_det_initlog,&edge_det, NULL,  NULL,sizeof(struct edge_det_args), sizeof(struct edge_det_logic) },
					 { 25, &measurand_initlog,NULL, &measurand_100hz,  NULL,sizeof(struct measurand_args), sizeof(struct measurand_logic) },
					 { 26, &led_initlog,NULL, NULL, NULL, sizeof(struct led_args), sizeof(struct led_logic) },
					 { 27, &buzzer_initlog,NULL, NULL, NULL, sizeof(struct led_args), sizeof(struct led_logic) },
					 { 28, &e_filtr2h_initlog,&e_filtr2h, NULL, NULL, sizeof(struct e_filtr2h_args), sizeof(struct e_filtr2h_logic) },
					 { 29, &e_filtr3h_initlog,&e_filtr3h, NULL, NULL, sizeof(struct e_filtr3h_args), sizeof(struct e_filtr3h_logic) },
					 { 30, &e_filtr5h_initlog,&e_filtr5h, NULL, NULL, sizeof(struct e_filtr5h_args), sizeof(struct e_filtr5h_logic) },
					 { 31, &e_avg_initlog,&e_avg, NULL, NULL, sizeof(struct e_avg_args), sizeof(struct e_avg_logic) },
					 { 32, &e_avg_1t_initlog,&e_avg_1t, NULL, NULL, sizeof(struct e_avg_1t_args), sizeof(struct e_avg_1t_logic) },
					 { 33, &e_avg_dt_initlog,&e_avg_dt,&e_avg_dt_100hz, NULL, sizeof(struct e_avg_dt_args), sizeof(struct e_avg_dt_logic) },
					 { 34, &pow_initlog,&pow_1,NULL, NULL, sizeof(struct pow_args), sizeof(struct pow_logic) },
					 { 35, &e_rms_initlog,&e_rms, NULL, NULL, sizeof(struct e_rms_args), sizeof(struct e_rms_logic) },
					 { 36, &e_rms_1t_initlog,&e_rms_1t, NULL, NULL, sizeof(struct e_rms_1t_args), sizeof(struct e_rms_1t_logic) },
					 { 37, &e_addvec_initlog,&e_addvec, NULL, NULL, sizeof(struct e_addvec_args), sizeof(struct e_addvec_logic) },
					 { 38, &e_subvec_initlog,&e_subvec, NULL, NULL, sizeof(struct e_subvec_args), sizeof(struct e_subvec_logic) },
					 { 39, &e_mulvec_initlog,&e_mulvec, NULL, NULL, sizeof(struct e_mulvec_args), sizeof(struct e_mulvec_logic) },
					 { 40, &e_mulcon_initlog,&e_mulcon, NULL, NULL, sizeof(struct e_mulcon_args), sizeof(struct e_mulcon_logic) },
					 { 41, &e_sc_p_initlog,&e_sc_p, NULL, NULL, sizeof(struct e_sc_p_args), sizeof(struct e_sc_p_logic) },
					 { 42, &e_sc_n_initlog,&e_sc_n, NULL, NULL, sizeof(struct e_sc_n_args), sizeof(struct e_sc_n_logic) },
					 { 43, &e_sc_z_initlog,&e_sc_z, NULL, NULL, sizeof(struct e_sc_z_args), sizeof(struct e_sc_z_logic) },
					 { 44, &e_mem1_initlog,&e_mem1, &e_mem1_100hz, NULL, sizeof(struct e_mem1_args), sizeof(struct e_mem1_logic) },
					 { 45, &e_cu_initlog,NULL, NULL, &e_cu_20hz, sizeof(struct e_cu_args), sizeof(struct e_cu_logic) },
					 { 46, &e_f_initlog,&e_f, NULL/*&e_f_100hz*/, NULL, sizeof(struct e_f_args), sizeof(struct e_f_logic) },
					 { 47, &e_du_initlog,NULL, NULL, &e_du_20hz, sizeof(struct e_du_args), sizeof(struct e_du_logic) },
					 { 48, &e_df_3f_initlog,NULL, &e_df_3f_100hz, NULL, sizeof(struct e_df_3f_args), sizeof(struct e_df_3f_logic) },
					 { 49, &e_df_dt_initlog,NULL, &e_df_dt_100hz, NULL, sizeof(struct e_df_dt_args), sizeof(struct e_df_dt_logic) },
					 { 50, &e_df_dt_3f_initlog,NULL, &e_df_dt_3f_100hz, NULL, sizeof(struct e_df_dt_3f_args), sizeof(struct e_df_dt_3f_logic) },
					 { 51, &e_du_dt_initlog,NULL, &e_du_dt_100hz, NULL, sizeof(struct e_du_dt_args), sizeof(struct e_du_dt_logic) },
					 { 52, &e_filtr1h_2t_initlog,&e_filtr1h_2t, NULL, NULL, sizeof(struct e_filtr1h_2t_args), sizeof(struct e_filtr1h_2t_logic) },
					 { 53, &e_pq_1f_initlog,NULL, &e_pq_1f_100hz, NULL, sizeof(struct e_pq_1f_args), sizeof(struct e_pq_1f_logic) },
					 { 54, &e_pq_3f_initlog,NULL, &e_pq_3f_100hz, NULL, sizeof(struct e_pq_3f_args), sizeof(struct e_pq_3f_logic) },
					 { 55, &e_pq_a_initlog,NULL, &e_pq_a_100hz, NULL, sizeof(struct e_pq_a_args), sizeof(struct e_pq_a_logic) },
					 { 56, &r_67n_lwn_initlog, &r_67n_lwn, &r_67n_lwn_100hz, &r_67n_lwn_20hz, sizeof(struct r_67n_lwn_args), sizeof(struct r_67n_lwn_logic) },
					 { 57, &u_fail_initlog, &u_fail, &u_fail_100hz, NULL, sizeof(struct u_fail_args), sizeof(struct u_fail_logic) },
					 { 58, &i_fail_initlog, &i_fail, &i_fail_100hz, NULL, sizeof(struct i_fail_args), sizeof(struct i_fail_logic) },
					 { 59, &ps_initlog, &ps, &ps_100hz, NULL, sizeof(struct ps_args), sizeof(struct ps_logic) },
					 { 60, &l_comm_initlog, &l_comm, &l_comm_100hz, NULL, sizeof(struct l_comm_args), sizeof(struct l_comm_logic) },
					 { 61, &ov_3ph_initlog, &ov_3ph, &ov_3ph_100hz, NULL, sizeof(struct ov_3ph_args), sizeof(struct ov_3ph_logic) }, // >I 3f
					 { 62, &ov_3ph_initlog, &ov_3ph, &ov_3ph_100hz, NULL, sizeof(struct ov_3ph_args), sizeof(struct ov_3ph_logic) }, // >U 3f
					 { 63, &under_3ph_initlog, &under_3ph, &under_3ph_100hz, NULL, sizeof(struct under_3ph_args), sizeof(struct under_3ph_logic) }, // <U 3f
					 { 64, &under_3ph_initlog, &under_3ph, &under_3ph_100hz, NULL, sizeof(struct under_3ph_args), sizeof(struct under_3ph_logic) }, // <U 3f
					 { 65, &bank_sel_initlog, &bank_sel, NULL, NULL, sizeof(struct bank_sel_args), sizeof(struct bank_sel_logic) },
					 { 66, &rec_float_initlog, &rec_float, NULL, NULL, sizeof(struct rec_float_args), sizeof(struct rec_float_logic) },
					 { 67, &sck_initlog, &sck, &sck_100hz, &sck_20hz, sizeof(struct sck_args), sizeof(struct sck_logic) },
					 { 68, &e_f_3f_initlog, NULL, &e_f_3f_100hz, NULL, sizeof(struct e_f_3f_args), sizeof(struct e_f_3f_logic) },
					 { 69, &pkw_initlog, &pkw, NULL, &pkw_20hz, sizeof(struct pkw_args), sizeof(struct pkw_logic) },
					 { 70, &log_state_initlog, &log_state, NULL, NULL, sizeof(struct log_state_args), sizeof(struct log_state_logic) },
					 { 71, &spz_3f_initlog, &spz_3f, NULL, NULL, sizeof(struct spz_3f_args), sizeof(struct spz_3f_logic) },
					 { 72, &dev_ctrl_initlog, &dev_ctrl, NULL, &dev_ctrl_20hz, sizeof(struct dev_ctrl_args), sizeof(struct dev_ctrl_logic) },
					 { 73, &e_phi_initlog, NULL, NULL, &e_phi_20hz, sizeof(struct e_phi_args), sizeof(struct e_phi_logic) },
					 { 74, &mul_initlog, &mul, NULL, NULL, sizeof(struct mul_args), sizeof(struct mul_logic) },
					 { 75, &and8_initlog, &and8, NULL, NULL, sizeof(struct and8_args), sizeof(struct and8_logic) },
					 { 76, &or8_initlog, &or8, NULL, NULL, sizeof(struct or8_args), sizeof(struct or8_logic) },
					 { 77, &CBR_initlog, &CBR, NULL, NULL, sizeof(struct CBR_args), sizeof(struct CBR_logic) },
					 { 78, &sqrt_initlog, &sqrt_, NULL, NULL, sizeof(struct sqrt_args), sizeof(struct sqrt_logic) },
					 { 79, &state_initlog, NULL, NULL, NULL, sizeof(struct state_args), sizeof(struct state_logic) },
					 { 80, &mux_float_initlog, &mux_float, NULL, NULL, sizeof(struct mux_float_args), sizeof(struct mux_float_logic) },
					 { 81, &e_filtr2h_1khz_initlog,&e_filtr2h_1khz, NULL, NULL, sizeof(struct e_filtr2h_1khz_args), sizeof(struct e_filtr2h_1khz_logic) },
					 { 82, &sum_float_initlog, &sum_float, NULL, NULL, sizeof(struct sum_float_args), sizeof(struct sum_float_logic) },
					 { 83, &ZDistA_initlog, &ZDistA, NULL, NULL, sizeof(struct ZDistA_args), sizeof(struct ZDistA_logic) },
					 { 84, &ZDistL_initlog, &ZDistL, &ZDistL_100hz, NULL, sizeof(struct ZDistL_args), sizeof(struct ZDistL_logic) },
					 { 85, &ZDistS_initlog, &ZDistS, &ZDistS_100hz, NULL, sizeof(struct ZDistS_args), sizeof(struct ZDistS_logic) },
					 { 86, &e_mem_initlog, &e_mem, &e_mem_100hz, NULL, sizeof(struct e_mem_args), sizeof(struct e_mem_logic) },
					 { 87, &diff_1_initlog, &diff_1, NULL, NULL, sizeof(struct diff_1_args), sizeof(struct diff_logic) },
					 { 88, &diff_2_initlog, &diff_2, NULL, NULL, sizeof(struct diff_2_args), sizeof(struct diff_logic) },
					 { 89, &demux8_initlog, &demux8, NULL, NULL, sizeof(struct demux8_args), sizeof(struct demux8_logic) },
					 { 90, &LMZ_initlog, &LMZ, NULL, &LMZ_20hz, sizeof(struct LMZ_args), sizeof(struct LMZ_logic) },
					 { 91, &ddr_initlog,&ddr, NULL, NULL, sizeof(struct ddr_args), sizeof(struct ddr_logic) },
					 { 92, &ov_1ph2h_initlog,&ov_1ph2h, &ov_1ph2h_100hz, NULL, sizeof(struct ov_1ph2h_args), sizeof(struct ov_1ph2h_logic) }, // I1ph>2h
					 { 93, &ov_3ph2h_initlog, &ov_3ph2h, &ov_3ph2h_100hz, NULL, sizeof(struct ov_3ph2h_args), sizeof(struct ov_3ph2h_logic) }, // >I 3f2h
					 { 94, &zzr_initlog, &zzr, NULL, NULL, sizeof(struct zzr_args), sizeof(struct zzr_logic) },
					 { 95, &kier_pr_initlog, &kier_pr, NULL, NULL, sizeof(struct kier_pr_args), sizeof(struct kier_pr_logic) },
					 { 96, &chka_initlog, &chka,NULL, NULL, sizeof(struct chka_args), sizeof(struct chka_logic) },
					 { 97, &chka_initlog, &chka,NULL, NULL, sizeof(struct chka_args), sizeof(struct chka_logic) },
					 { 98, &mux_bin_initlog, &mux_bin,NULL, NULL, sizeof(struct mux_bin_args), sizeof(struct mux_bin_logic) },
					 { 99, &hr_3ph2h_initlog, &hr_3ph2h,NULL, NULL, sizeof(struct hr_3ph2h_args), sizeof(struct hr_3ph2h_logic) },
					 { 100, &r21g_initlog, &r21g,NULL, NULL, sizeof(struct r21g_args), sizeof(struct r21g_logic) },
					 { 101, &counter_initlog, &counter,NULL, NULL, sizeof(struct counter_args), sizeof(struct counter_logic) },
					 { 102, &const_flt_initlog, NULL,NULL, NULL, sizeof(struct const_flt_args), sizeof(struct const_flt_logic) },
					 { 103, &chka_ieee_initlog, &chka_ieee,NULL, NULL, sizeof(struct chka_ieee_args), sizeof(struct chka_ieee_logic) },
					 { 104, &chka_ieee_initlog, &chka_ieee,NULL, NULL, sizeof(struct chka_ieee_args), sizeof(struct chka_ieee_logic) },
					 { 105, &r_67n_lwn2_initlog, &r_67n_lwn2, &r_67n_lwn2_100hz, NULL /*&r_67n_lwn2_20hz*/, sizeof(struct r_67n_lwn2_args), sizeof(struct r_67n_lwn2_logic) },
					 { 106, &ethernet_initlog, &ethernet, NULL, NULL, sizeof(struct eth_args), sizeof(struct eth_logic) },
					 { 107, &mkstream_initlog, &mkstream, NULL, NULL, sizeof(struct mkstream_args), sizeof(struct mkstream_logic) },
					 { 108, &destream_initlog, &destream, NULL, NULL, sizeof(struct destream_args), sizeof(struct destream_logic) },
					 { 109, &R87L_initlog, &R87L, NULL, NULL, sizeof(struct r87l_args), sizeof(struct r87l_logic) },
					 { 110, &and4_initlog, &and4, NULL, NULL, sizeof(struct and4_args), sizeof(struct and4_logic) },
					 { 111, &or4_initlog, &or4, NULL, NULL, sizeof(struct or4_args), sizeof(struct or4_logic) },
					 { 112, &cnt_initlog, &cnt, NULL, NULL, sizeof(struct cnt_args), sizeof(struct cnt_logic) },
					 { 113, &c37_94_initlog, &c37_94, NULL, NULL, sizeof(struct c37_94_args), sizeof(struct c37_94_logic) },
					 { 114, &sum_flt_3f_initlog, &sum_flt_3f, NULL, NULL, sizeof(struct sum_flt_3f_args), sizeof(struct sum_flt_3f_logic) },
					 { 115, &sum_e_3f_initlog, &sum_e_3f, NULL, NULL, sizeof(struct sum_e_3f_args), sizeof(struct sum_e_3f_logic) },
					 { 116, &cap_comp_initlog, &cap_comp, NULL, NULL, sizeof(struct cap_comp_args), sizeof(struct cap_comp_logic) },
					 { 117, &s_demux_initlog, &s_demux, NULL, NULL, sizeof(struct s_demux_args), sizeof(struct s_demux_logic) },
					 { 118, &ov_3ph2h_slow_initlog, &ov_3ph2h_slow, &ov_3ph2h_slow_100hz, NULL, sizeof(struct ov_3ph2h_slow_args), sizeof(struct ov_3ph2h_slow_logic) }, // >I 3f2h
					 { 119, &tz_8_initlog,&tz_8, NULL, NULL, sizeof(struct tz_8_args), sizeof(struct tz_8_logic) },
					 { 120, &mki7_initlog, NULL, NULL, &mki7_20hz, sizeof(struct mki7_args), sizeof(struct mki7_logic) },
					 { 121, &goose_initlog, NULL, NULL, NULL, sizeof(struct goose_args), sizeof(struct goose_logic) },
					 { 122, &rec_buf_initlog,NULL, NULL, NULL, sizeof(struct rec_buf_args), sizeof(struct rec_buf_logic) },
					 { 123, &sv_initlog, &sv, NULL, NULL, sizeof(struct sv_args), sizeof(struct sv_logic) },
					 { 124, &rnt_initlog, &rnt, NULL, NULL, sizeof(struct rnt_args), sizeof(struct rnt_logic) },
					 { 125, &goose_drv_initlog, &goose_drv, NULL, NULL, sizeof(struct goose_drv_args), sizeof(struct goose_drv_logic) },
					 { 126, &goose_out_initlog, &goose_out, NULL, NULL, sizeof(struct goose_out_args), sizeof(struct goose_out_logic) },
					 { 127, &nr_zacz_initlog, &nr_zacz, NULL, NULL, sizeof(struct nr_zacz_args), sizeof(struct nr_zacz_logic) },
					 { 128, &prog_czas_initlog, &prog_czas, NULL, NULL, sizeof(struct prog_czas_args), sizeof(struct prog_czas_logic) },
					 { 129, &r_freq_initlog, NULL, r_freq_100hz, NULL, sizeof(struct r_freq_args), sizeof(struct r_freq_logic) },
					 { 130, &dec_month_initlog, &dec_month, NULL, NULL, sizeof(struct dec_month_args), sizeof(struct dec_month_logic) },
					 { 131, &mux_t_initlog, &mux_t, NULL, NULL, sizeof(struct mux_t_args), sizeof(struct mux_t_logic) },
					 { 132, &lacz_initlog, &lacz, NULL, NULL, sizeof(struct lacz_args), sizeof(struct lacz_logic) },
					 { 133, &LRW_initlog, &LRW, NULL, NULL, sizeof(struct LRW_args), sizeof(struct LRW_logic) },
					 { 134, &comp_s_initlog, &comp_s, NULL, NULL, sizeof(struct comp_s_args), sizeof(struct comp_s_logic) },
					 { 135, &ps2_initlog, &ps2, &ps2_100hz, NULL, sizeof(struct ps2_args), sizeof(struct ps2_logic) },
					 { 136, &ZDistA_komp_initlog, &ZDistA_komp, NULL, NULL, sizeof(struct ZDistA_komp_args), sizeof(struct ZDistA_komp_logic) },
					 { 137, &ZDistL_initlog_komp, &ZDistL_komp, &ZDistL_100hz_komp, NULL, sizeof(struct ZDistL_args_komp), sizeof(struct ZDistL_logic_komp) },
					 { 138, &spz_3f_2_initlog, &spz_3f_2, NULL, NULL, sizeof(struct spz_3f_2_args), sizeof(struct spz_3f_2_logic) },
					 { 139, &s_demux2_initlog, &s_demux2, NULL, NULL, sizeof(struct s_demux2_args), sizeof(struct s_demux2_logic) },
					 { 140, &ethernet_ench_initlog, &ethernet_ench, NULL, NULL, sizeof(struct eth_ench_args), sizeof(struct eth_ench_logic) },
					 { 141, &eth_demux_initlog, &eth_demux, NULL, NULL, sizeof(struct eth_demux_args), sizeof(struct eth_demux_logic) },
					 { 142, &R87L_8_initlog, &R87L_8, NULL, NULL, sizeof(struct r87l_8_args), sizeof(struct r87l_8_logic) },
					 { 143, &mki7_2_initlog, NULL, NULL, &mki7_2_20hz, sizeof(struct mki7_2_args), sizeof(struct mki7_2_logic) },
					 // iec sv
					 { 144, &mki7_2_initlog, NULL, NULL, &mki7_2_20hz, sizeof(struct mki7_2_args), sizeof(struct mki7_2_logic) },

					 //iec sv drv here
					 { 145, &diff_1_bis_initlog, &diff_1_bis, NULL, NULL, sizeof(struct diff_1_bis_args), sizeof(struct diff_1_bis_logic) },
					 { 146, &od_bl_initlog, &od_bl, NULL, NULL, sizeof(struct od_bl_args), sizeof(struct od_bl_logic) },
					 { 147, &log_wyl_initlog, &log_wyl, NULL, NULL, sizeof(struct log_wyl_args), sizeof(struct log_wyl_logic) },

					 { 65528, &out_drv_initlog,&out_drv, NULL, NULL, sizeof(struct out_drv_args), sizeof(struct out_drv_logic) },
					 { 65529, &an_gen_initlog,&an_gen, NULL, NULL, sizeof(struct an_gen_args), sizeof(struct an_gen_logic) },
					 { 65530, &ddr_drv_initlog,NULL, NULL, NULL, sizeof(struct ddr_drv_args), sizeof(struct ddr_drv_logic) },
					 { 65531, &dfr_drv_initlog,NULL, NULL, NULL, sizeof(struct dfr_drv_args), sizeof(struct dfr_drv_logic) },
					 { 65532, &virt_in_drv_initlog,NULL, &virt_in_drv_100hz, NULL, sizeof(struct virt_in_drv_args), sizeof(struct virt_in_drv_logic) },
					 { 65533, &events_reg_initlog,&events_reg, NULL, NULL, sizeof(struct events_reg_args), sizeof(struct events_reg_logic) },
					 { 65534, &leds_drv_initlog,&leds_drv, NULL, NULL, sizeof(struct leds_drv_args), sizeof(struct leds_drv_logic) },
					 { EOF_ELEMENT, 0, 0, 0 }
				};

