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

source file that creates all the threads More...

#include "AppGlobal.h"
Include dependency graph for default_task.c:

Functions

void * data_processing_func (void *arg)
 Function that processes all the IO-modules and valves real-time data.
 
void * monitorLedTask (void *arg)
 
void lvgl_gui (void)
 function that waits for key press events & calls handle_display function
 
void read_dv_fault_csv ()
 Function that reads the fault data from CSV file & stores the same in the structure.
 
void read_dv_warning_csv ()
 Function that reads the warning data from CSV file & stores the same in the structure.
 
void read_isem_warning_csv ()
 Function that reads the isem_diag_warning data from CSV file & stores the same in the structure.
 
void read_isem_fault_csv ()
 Function that reads the ISEM diag fault data from CSV file & stores the same in the structure.
 
int getModuleNumber (int index)
 
int getindexvalue (int index)
 
void disp_mod_status_screen (int status_value, int indx)
 function to create the status screen
 
void my_perror (const char *__s)
 function that displays the initializations error
 
void delay_ms (int ms)
 function that calls delay in milliseconds
 
void * lvgl_state_machine (void *arg)
 function that calls lvgl state machine
 
void * lvgl_run (void *arg)
 function that calls the LVGL GUI screens (entry point to display screens)
 
void * screen_pop_up_func (void *arg)
 function that calls the screen pop up
 
void default_main (void)
 default function to create threads and events
 

Variables

pthread_mutex_t mutex
 
int G_KEY_PRESSED_EVENT
 
int G_POP_EVENT
 
pthread_t data_processing_thread
 
pthread_t screen_pop_up_thread
 
pthread_t thread_acquire
 
pthread_t lvgl_state_thread
 
pthread_t lvgl_run_thread
 
pthread_t thread_led
 
int g_status_value
 
uint8_t cur_disp_scr_index
 
int gg
 
int kk
 

Detailed Description

source file that creates all the threads

Function Documentation

◆ data_processing_func()

void * data_processing_func ( void * arg)
extern

Function that processes all the IO-modules and valves real-time data.

Returns
API_SUCCESS_test
Here is the call graph for this function:
Here is the caller graph for this function:

◆ default_main()

void default_main ( void )

default function to create threads and events

Parameters
none
Here is the call graph for this function:
Here is the caller graph for this function:

◆ delay_ms()

void delay_ms ( int ms)

function that calls delay in milliseconds

Parameters
ms- millisecond value
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 caller graph for this function:

◆ getindexvalue()

int getindexvalue ( int index)
extern
Here is the caller graph for this function:

◆ getModuleNumber()

int getModuleNumber ( int index)
extern
Here is the caller graph for this function:

◆ lvgl_gui()

void lvgl_gui ( void )
extern

function that waits for key press events & calls handle_display function

Parameters
None
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lvgl_run()

void * lvgl_run ( void * arg)

function that calls the LVGL GUI screens (entry point to display screens)

Parameters
none
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lvgl_state_machine()

void * lvgl_state_machine ( void * arg)

function that calls lvgl state machine

Parameters
none
Here is the caller graph for this function:

◆ monitorLedTask()

void * monitorLedTask ( void * arg)
extern
Here is the call graph for this function:
Here is the caller graph for this function:

◆ my_perror()

void my_perror ( const char * __s)

function that displays the initializations error

Parameters
s- string message
Here is the caller graph for this function:

◆ read_dv_fault_csv()

void read_dv_fault_csv ( )
extern

Function that reads the fault data from CSV file & stores the same in the structure.

Parameters
None
Here is the call graph for this function:
Here is the caller graph for this function:

◆ read_dv_warning_csv()

void read_dv_warning_csv ( )
extern

Function that reads the warning data from CSV file & stores the same in the structure.

Parameters
None
Here is the caller graph for this function:

◆ read_isem_fault_csv()

void read_isem_fault_csv ( )
extern

Function that reads the ISEM diag fault data from CSV file & stores the same in the structure.

Parameters
None
Here is the call graph for this function:
Here is the caller graph for this function:

◆ read_isem_warning_csv()

void read_isem_warning_csv ( )
extern

Function that reads the isem_diag_warning data from CSV file & stores the same in the structure.

Parameters
None
Here is the call graph for this function:
Here is the caller graph for this function:

◆ screen_pop_up_func()

void * screen_pop_up_func ( void * arg)

function that calls the screen pop up

Parameters
none
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ cur_disp_scr_index

uint8_t cur_disp_scr_index
extern

◆ data_processing_thread

pthread_t data_processing_thread

◆ G_KEY_PRESSED_EVENT

int G_KEY_PRESSED_EVENT

◆ G_POP_EVENT

int G_POP_EVENT

◆ g_status_value

int g_status_value
extern

◆ gg

int gg

◆ kk

int kk

◆ lvgl_run_thread

pthread_t lvgl_run_thread

◆ lvgl_state_thread

pthread_t lvgl_state_thread

◆ mutex

pthread_mutex_t mutex

◆ screen_pop_up_thread

pthread_t screen_pop_up_thread

◆ thread_acquire

pthread_t thread_acquire

◆ thread_led

pthread_t thread_led