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

Source that displays status screen. More...

#include <AppGlobal.h>
Include dependency graph for status_screen.c:

Functions

void disp_mod_status_screen (int status_value, int indx)
 function to create the status screen
 
void stop_flashing_timer ()
 function to stop the flashing timer
 
void status_label_creation (lv_obj_t *screen_name, const char *text, lv_coord_t x, lv_coord_t y, lv_coord_t w, lv_coord_t h, const lv_font_t *font_name, uint32_t font_colour)
 function to create the labels
 
void status_qr_creation (lv_obj_t *screen_name, lv_coord_t size, char *text)
 function to create the QR
 
void set_animation (lv_obj_t *label)
 create animations for normal and warning status
 
void set_animation_fault (lv_obj_t *label)
 create animations for fault status
 

Variables

status_screen_struct screen_status_value [MACRO_MAX_MESSAGE_QUEUE_SIZE]
 
uint8_t g_total_no_of_status_screens
 
lv_obj_t * label1
 
lv_obj_t * label2
 
lv_obj_t * label3
 
lv_obj_t * label4
 
lv_obj_t * label5
 
lv_obj_t * label6
 
lv_obj_t * label7
 
lv_obj_t * label8
 
lv_obj_t * war_icn
 
int flash_on = 0
 
status_screen m_status
 

Detailed Description

Source that displays status screen.

Function Documentation

◆ disp_mod_status_screen()

void disp_mod_status_screen ( int status_value,
int indx )

function to create the status screen

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

◆ set_animation()

void set_animation ( lv_obj_t * label)

create animations for normal and warning status

Parameters
label- label name for animations to occur

◆ set_animation_fault()

void set_animation_fault ( lv_obj_t * label)

create animations for fault status

Parameters
label- label name for animations to occur

◆ status_label_creation()

void status_label_creation ( lv_obj_t * screen_name,
const char * text,
lv_coord_t x,
lv_coord_t y,
lv_coord_t w,
lv_coord_t h,
const lv_font_t * font_name,
uint32_t font_colour )
extern

function to create the labels

Parameters
screen_name- screen name
text- text to be displayed on the screen
x- x axis alignment of the label
y- y axis alignment of the label
w- width of the label
h- height of the label
font_name- font name (Monospace821 BT)
font_color- font color (white or black)
Here is the caller graph for this function:

◆ status_qr_creation()

void status_qr_creation ( lv_obj_t * screen_name,
lv_coord_t size,
char * text )
extern

function to create the QR

Parameters
screen_name- screen name
text- text to be displayed on QR code
Here is the caller graph for this function:

◆ stop_flashing_timer()

void stop_flashing_timer ( )

function to stop the flashing timer

Parameters
none
Here is the caller graph for this function:

Variable Documentation

◆ flash_on

int flash_on = 0

◆ g_total_no_of_status_screens

uint8_t g_total_no_of_status_screens
extern

◆ label1

lv_obj_t* label1

◆ label2

lv_obj_t* label2

◆ label3

lv_obj_t* label3

◆ label4

lv_obj_t* label4

◆ label5

lv_obj_t* label5

◆ label6

lv_obj_t* label6

◆ label7

lv_obj_t* label7

◆ label8

lv_obj_t* label8

◆ m_status

status_screen m_status

◆ screen_status_value

status_screen_struct screen_status_value[MACRO_MAX_MESSAGE_QUEUE_SIZE]
extern

◆ war_icn

lv_obj_t* war_icn