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

LCD display management. More...

#include <stdint.h>
#include "common/phal_G4/usart/usart.h"
Include dependency graph for lcd.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  page_handler_t
 

Enumerations

enum  page_t : uint8_t {
  PAGE_RACE = 0 , PAGE_FAULTS = 1 , PAGE_CALIBRATION = 2 , PAGE_AMK = 3 ,
  PAGE_VCU = 4 , NUM_PAGES , PAGE_PREFLIGHT
}
 

Functions

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 (void)
 Advances to the next selectable page.
 
void backPage (void)
 Moves to the previous selectable page.
 
void selectItem (void)
 
void moveUp (void)
 
void moveDown (void)
 
void updatePage (void)
 Updates LCD display page.
 
void updateTelemetryPages (void)
 Updates current telemetry page by calling its handler if available.
 

Variables

static constexpr uint32_t LCD_BAUD_RATE = 115'200
 
static constexpr PHAL_USART_Idx_t LCD_USART = USART1_IDX
 
volatile page_t curr_page
 

Detailed Description

LCD display management.

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

Enumeration Type Documentation

◆ page_t

enum page_t : uint8_t
Enumerator
PAGE_RACE 
PAGE_FAULTS 
PAGE_CALIBRATION 
PAGE_AMK 
PAGE_VCU 
NUM_PAGES 
PAGE_PREFLIGHT 

Function Documentation

◆ advancePage()

void advancePage ( void )

Advances to the next selectable page.

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

◆ backPage()

void backPage ( void )

Moves to the previous selectable page.

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

◆ LCD_init()

void LCD_init ( uint32_t baud_rate)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ LCD_tx_update()

void LCD_tx_update ( void )

Called periodically to send commands to the Nextion LCD display via USART.

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

◆ moveDown()

void moveDown ( void )
Here is the caller graph for this function:

◆ moveUp()

void moveUp ( void )
Here is the caller graph for this function:

◆ selectItem()

void selectItem ( void )
Here is the caller graph for this function:

◆ updatePage()

void updatePage ( void )

Updates LCD display page.

Key behaviors:

  • Maintains display of error pages when active
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateTelemetryPages()

void updateTelemetryPages ( void )

Updates current telemetry page by calling its handler if available.

Here is the caller graph for this function:

Variable Documentation

◆ curr_page

volatile page_t curr_page
extern

◆ LCD_BAUD_RATE

uint32_t LCD_BAUD_RATE = 115'200
staticconstexpr

◆ LCD_USART

PHAL_USART_Idx_t LCD_USART = USART1_IDX
staticconstexpr