Arrow3-MBN-APP
 
Loading...
Searching...
No Matches
diag_valve_status_info.c File Reference

Source that processes the diag valve modules status information. More...

#include "AppGlobal.h"
#include "../Header/API_Header/AppDataInterface.h"
Include dependency graph for diag_valve_status_info.c:

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
 

Detailed Description

Source that processes the diag valve modules status information.

Function Documentation

◆ diag_valve_status_info()

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.

Parameters
pz_indexThe index of the pressure zone
diagvalve_indexThe index of the diagnostic valve
mod_numThe module number in the status screen
pz_numThe pressure zone number
station_indThe station index
processdataPointer to already retrieved process data (can be NULL)
Returns
RET_OK on success, error code otherwise
Here is the call graph for this function:
Here is the caller graph for this function:

◆ disp_mod_status_screen()

void disp_mod_status_screen ( int status_value,
int indx )
extern

function to create the status screen

Parameters
status_value- (0 - normal, 1 - warning, 2 - fault)
Here is the call graph for this function:

◆ find_bit_difference()

int find_bit_difference ( uint32_t data1,
uint32_t data2,
int mod_num )
Here is the caller graph for this function:

◆ find_bit_difference_war()

int find_bit_difference_war ( uint32_t data1,
uint32_t data2,
int station_ind,
int mod_num )
Here is the caller graph for this function:

◆ getindexvalue()

int getindexvalue ( int index)
extern

◆ getModuleNumber()

int getModuleNumber ( int index)
extern

◆ reset_diag_status()

void reset_diag_status ( uint8_t reset_type,
uint8_t module_index )

Reset DIAG valve warning and fault status.

Parameters
reset_type0 for individual, 1 for all
module_indexspecific module index to reset (if reset_type is 0)
Here is the caller graph for this function:

◆ stop_timer()

void stop_timer ( )
extern

Function to stop the inactivity timer.

Parameters
None

Variable Documentation

◆ cur_disp_scr_index

uint8_t cur_disp_scr_index
extern

◆ curr_dv_fault

uint32_t curr_dv_fault

◆ curr_dv_war

uint32_t curr_dv_war

◆ curr_fault_index

uint8_t curr_fault_index

◆ curr_fault_list

uint8_t curr_fault_list[MACRO_MAX_MESSAGE_QUEUE_SIZE]
extern

◆ curr_war_index

uint8_t curr_war_index
extern

◆ curr_war_list

uint8_t curr_war_list[MACRO_MAX_MESSAGE_QUEUE_SIZE]
extern

◆ diag_valve_device_types

uint32_t diag_valve_device_types[MACRO_MAX_PRESSURE_ZONE][MACRO_MAX_DIAG_VALVE_PER_PZZONE]
extern

◆ diagvalve_processdata

diagvalve_processinfo diagvalve_processdata

◆ fault_csv_value

fault_csv_struct fault_csv_value[35]
extern

◆ fault_file_not_exist

uint8_t fault_file_not_exist
extern

◆ G_POP_EVENT

int G_POP_EVENT
extern

◆ g_status_index

uint8_t g_status_index
extern

◆ merged

char merged[141]

◆ mutex

pthread_mutex_t mutex
extern

◆ N

int N = 1

◆ n

int n = 1

◆ normal_index

normal_index
extern

◆ normal_list

uint8_t normal_list[MACRO_MAX_MESSAGE_QUEUE_SIZE]
extern

◆ prev_dv_fault

uint32_t prev_dv_fault[MACRO_MAX_MESSAGE_QUEUE_SIZE] = {0}

◆ prev_dv_war

uint32_t prev_dv_war[MACRO_MAX_MESSAGE_QUEUE_SIZE] = {0}

◆ prev_fault_index

uint8_t prev_fault_index

◆ prev_fault_list

uint8_t prev_fault_list[MACRO_MAX_MESSAGE_QUEUE_SIZE]
extern

◆ prev_war_index

uint8_t prev_war_index

◆ prev_war_list

uint8_t prev_war_list[MACRO_MAX_MESSAGE_QUEUE_SIZE]
extern

◆ screen_status_value

status_screen_struct screen_status_value
extern

◆ stat_pop_flag

uint8_t stat_pop_flag

◆ station_flag_fault

int station_flag_fault =0

◆ station_flag_warning

int station_flag_warning =0

◆ station_num_latest

uint8_t station_num_latest

◆ str

char str[8]

◆ str_war

char str_war[8]

◆ warning_csv_value

warning_csv_struct warning_csv_value[35]
extern

◆ warning_file_not_exist

uint8_t warning_file_not_exist
extern