33 lines
738 B
C
33 lines
738 B
C
|
/*
|
|||
|
* detect_overload.h
|
|||
|
*
|
|||
|
* Created on: 15 <EFBFBD><EFBFBD><EFBFBD>. 2020 <EFBFBD>.
|
|||
|
* Author: star
|
|||
|
*/
|
|||
|
|
|||
|
#ifndef SRC_MAIN_DETECT_OVERLOAD_H_
|
|||
|
#define SRC_MAIN_DETECT_OVERLOAD_H_
|
|||
|
|
|||
|
typedef struct {
|
|||
|
_iq val; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
_iq level_overload; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
int overload_detected; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
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_ */
|