Source that displays status screen. More...
#include <AppGlobal.h>
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 |
Source that displays status screen.
void disp_mod_status_screen | ( | int | status_value, |
int | indx ) |
function to create the status screen
status_value | - (0 - normal, 1 - warning, 2 - fault) |
void set_animation | ( | lv_obj_t * | label | ) |
create animations for normal and warning status
label | - label name for animations to occur |
void set_animation_fault | ( | lv_obj_t * | label | ) |
create animations for fault status
label | - label name for animations to occur |
|
extern |
function to create the labels
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) |
|
extern |
function to create the QR
screen_name | - screen name |
text | - text to be displayed on QR code |
void stop_flashing_timer | ( | ) |
function to stop the flashing timer
none |
int flash_on = 0 |
|
extern |
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 |
status_screen m_status |
|
extern |
lv_obj_t* war_icn |