PER Firmware
Loading...
Searching...
No Matches
lcd.c File Reference

LCD display management. More...

#include "lcd.h"
#include <stddef.h>
#include <stdint.h>
#include "common/nextion/nextion.h"
#include "common/phal/usart.h"
#include "pages/race.h"
#include "pages/calibration.h"
#include "pages/faults.h"
#include "pages/amk.h"
#include "pages/vcu.h"

Functions

 ALLOCATE_STRBUF (lcd_tx_buf, 2048)
 
void LCD_init (uint32_t baud_rate)
 
void LCD_tx_update (void)
 Called periodically to send commands to the Nextion LCD display via USART.
 
void advancePage ()
 Advances to the next selectable page.
 
void backPage ()
 Moves to the previous selectable page.
 
void updatePage ()
 Updates LCD display page.
 
void moveUp ()
 
void moveDown ()
 
void selectItem ()
 
void updateTelemetryPages ()
 Updates current telemetry page by calling its handler if available.
 

Variables

volatile page_t curr_page = PAGE_PREFLIGHT
 
volatile page_t prev_page = PAGE_PREFLIGHT
 
const page_handler_t page_handlers [NUM_PAGES]
 
usart_init_t lcd
 

Detailed Description

LCD display management.

Author
Irving Wang (irvin.nosp@m.gw@p.nosp@m.urdue.nosp@m..edu)

Function Documentation

◆ updatePage()

void updatePage ( void )

Updates LCD display page.

Key behaviors:

  • Maintains display of error pages when active