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

thread to manage driver-facing LCD, buttons, LEDs More...

#include <stdint.h>
Include dependency graph for driver_interface.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  driver_interface_action_t {
  UPDATE_PAGE , MENU_UP , MENU_DOWN , BACK_PAGE ,
  FORWARD_PAGE , SELECT_BUTTON , START_BUTTON , MARK_DATA ,
  TOGGLE_REGEN , RIGHT_WHEEL_MINUS , RIGHT_WHEEL_PLUS , LEFT_WHEEL_MINUS ,
  LAP_SET
}
 
enum  driver_interface_state_t { DI_STATE_LCD_INIT = 0 , DI_STATE_BUTTONS_INIT = 1 , DI_STATE_ACTIVE = 2 }
 

Functions

void driver_interface_periodic (void)
 

Variables

static constexpr uint32_t DRIVER_INTERFACE_PERIOD_MS = 50
 

Detailed Description

thread to manage driver-facing LCD, buttons, LEDs

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

Enumeration Type Documentation

◆ driver_interface_action_t

Enumerator
UPDATE_PAGE 
MENU_UP 
MENU_DOWN 
BACK_PAGE 
FORWARD_PAGE 
SELECT_BUTTON 
START_BUTTON 
MARK_DATA 
TOGGLE_REGEN 
RIGHT_WHEEL_MINUS 
RIGHT_WHEEL_PLUS 
LEFT_WHEEL_MINUS 
LAP_SET 

◆ driver_interface_state_t

Enumerator
DI_STATE_LCD_INIT 
DI_STATE_BUTTONS_INIT 
DI_STATE_ACTIVE 

Function Documentation

◆ driver_interface_periodic()

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

Variable Documentation

◆ DRIVER_INTERFACE_PERIOD_MS

uint32_t DRIVER_INTERFACE_PERIOD_MS = 50
staticconstexpr