matlab_23550/Inu/Src2/main/detect_overload.h

33 lines
738 B
C

/*
* detect_overload.h
*
* Created on: 15 äåê. 2020 ã.
* Author: star
*/
#ifndef SRC_MAIN_DETECT_OVERLOAD_H_
#define SRC_MAIN_DETECT_OVERLOAD_H_
typedef struct {
_iq val; //Òåêóùåå çíà÷åíèå
_iq level_overload; //Óðîâåíü ïåðåãðóçêè
int overload_detected; //Îãðàíè÷åíèå âêëþ÷åíî
unsigned long time_over_tics;
unsigned long time_latch_tics;
unsigned long tics_counter;
int (*calc)();
} DETECT_OVERLOAD;
#define DETECT_OVERLOAD_DEFAULTS {0,0,0, 0,0,0, \
calc_detect_overload }
void init_detect_overloads(void);
int calc_detect_overload(DETECT_OVERLOAD *v);
void check_all_power_limits();
extern DETECT_OVERLOAD out_I_over_1_6;
#endif /* SRC_MAIN_DETECT_OVERLOAD_H_ */