Source that processes the diag valve modules status information. More...
#include "AppGlobal.h"
#include "../Header/API_Header/AppDataInterface.h"
Functions | |
void | stop_timer () |
Function to stop the inactivity timer. | |
int | getindexvalue (int index) |
int | getModuleNumber (int index) |
void | disp_mod_status_screen (int status_value, int indx) |
function to create the status screen | |
int | find_bit_difference_war (uint32_t data1, uint32_t data2, int station_ind, int mod_num) |
int | find_bit_difference (uint32_t data1, uint32_t data2, int mod_num) |
int | diag_valve_status_info (uint8_t pz_index, uint8_t diagvalve_index, uint8_t mod_num, uint8_t pz_num, uint8_t station_ind, diagvalve_processinfo *processdata, uint8_t status_type) |
Function that processes the diag valve modules status information. | |
void | reset_diag_status (uint8_t reset_type, uint8_t module_index) |
Reset DIAG valve warning and fault status. | |
Variables | |
uint8_t | g_status_index |
int | station_flag_warning =0 |
int | station_flag_fault =0 |
char | str [8] |
char | str_war [8] |
char | merged [141] |
int | N = 1 |
int | n = 1 |
uint32_t | prev_dv_war [MACRO_MAX_MESSAGE_QUEUE_SIZE] = {0} |
uint32_t | prev_dv_fault [MACRO_MAX_MESSAGE_QUEUE_SIZE] = {0} |
uint32_t | curr_dv_war |
uint32_t | curr_dv_fault |
uint32_t | diag_valve_device_types [MACRO_MAX_PRESSURE_ZONE][MACRO_MAX_DIAG_VALVE_PER_PZZONE] |
uint8_t | stat_pop_flag |
uint8_t | station_num_latest |
uint8_t | cur_disp_scr_index |
int | G_POP_EVENT |
status_screen_struct | screen_status_value [20] |
fault_csv_struct | fault_csv_value [35] |
warning_csv_struct | warning_csv_value [35] |
uint8_t | fault_file_not_exist |
uint8_t | warning_file_not_exist |
uint8_t | curr_war_index |
uint8_t | prev_war_index |
uint8_t | curr_fault_index |
uint8_t | prev_fault_index |
uint8_t | curr_war_list [MACRO_MAX_MESSAGE_QUEUE_SIZE] |
uint8_t | prev_war_list [MACRO_MAX_MESSAGE_QUEUE_SIZE] |
uint8_t | curr_fault_list [MACRO_MAX_MESSAGE_QUEUE_SIZE] |
uint8_t | prev_fault_list [MACRO_MAX_MESSAGE_QUEUE_SIZE] |
uint8_t | normal_list [MACRO_MAX_MESSAGE_QUEUE_SIZE] |
normal_index | |
pthread_mutex_t | mutex |
diagvalve_processinfo | diagvalve_processdata |
Source that processes the diag valve modules status information.
int diag_valve_status_info | ( | uint8_t | pz_index, |
uint8_t | diagvalve_index, | ||
uint8_t | mod_num, | ||
uint8_t | pz_num, | ||
uint8_t | station_ind, | ||
diagvalve_processinfo * | processdata, | ||
uint8_t | status_type ) |
Function that processes the diag valve modules status information.
pz_index | The index of the pressure zone |
diagvalve_index | The index of the diagnostic valve |
mod_num | The module number in the status screen |
pz_num | The pressure zone number |
station_ind | The station index |
processdata | Pointer to already retrieved process data (can be NULL) |
|
extern |
function to create the status screen
status_value | - (0 - normal, 1 - warning, 2 - fault) |
int find_bit_difference | ( | uint32_t | data1, |
uint32_t | data2, | ||
int | mod_num ) |
int find_bit_difference_war | ( | uint32_t | data1, |
uint32_t | data2, | ||
int | station_ind, | ||
int | mod_num ) |
|
extern |
|
extern |
void reset_diag_status | ( | uint8_t | reset_type, |
uint8_t | module_index ) |
Reset DIAG valve warning and fault status.
reset_type | 0 for individual, 1 for all |
module_index | specific module index to reset (if reset_type is 0) |
|
extern |
Function to stop the inactivity timer.
None |
|
extern |
uint32_t curr_dv_fault |
uint32_t curr_dv_war |
uint8_t curr_fault_index |
|
extern |
|
extern |
|
extern |
|
extern |
diagvalve_processinfo diagvalve_processdata |
|
extern |
|
extern |
|
extern |
|
extern |
char merged[141] |
|
extern |
int N = 1 |
int n = 1 |
|
extern |
|
extern |
uint32_t prev_dv_fault[MACRO_MAX_MESSAGE_QUEUE_SIZE] = {0} |
uint32_t prev_dv_war[MACRO_MAX_MESSAGE_QUEUE_SIZE] = {0} |
uint8_t prev_fault_index |
|
extern |
uint8_t prev_war_index |
|
extern |
|
extern |
uint8_t stat_pop_flag |
int station_flag_fault =0 |
int station_flag_warning =0 |
uint8_t station_num_latest |
char str[8] |
char str_war[8] |
|
extern |
|
extern |