LED6.
Definition: hmi.h:61
void(* encoder1push_handler)(void)
this handler is called when the switch in encoder 1 is pressed
Definition: hmi.h:89
GPIO configuration and service functions.
const struct gpio_header * input_header
the pin header that is connected to the HMI board's X2 header
Definition: hmi.h:83
the bar graph shows 7/8
Definition: hmi.h:76
void(* encoder2ccw_handler)(void)
this handler is called when encoder 2 is rotated counter-clockwise
Definition: hmi.h:91
Configuration structure for the HMI module.
Definition: hmi.h:81
the bar graph is full
Definition: hmi.h:77
void set_hmi_led(enum hmi_led led, bool value)
Turns a specific LED on or off.
Definition: hmi.c:113
uint8_t hmi_led_pattern_t
A bitmask that specifies an LED pattern to display.
Definition: hmi.h:46
void(* encoder1cw_handler)(void)
this handler is called when encoder 1 is rotated clockwise
Definition: hmi.h:87
LED4.
Definition: hmi.h:59
LED8.
Definition: hmi.h:63
void(* button1_handler)(void)
this handler is called when button 1 is pressed
Definition: hmi.h:85
the bar graph shows 6/8
Definition: hmi.h:75
hmi_led
Enumeration for the available LEDs on the HMI board.
Definition: hmi.h:54
hmi_bar_graph_percentage
Enumeration for possible percentages to display.
Definition: hmi.h:67
the bar graph shows 2/8
Definition: hmi.h:71
LED2.
Definition: hmi.h:57
the bar graph shows 4/8
Definition: hmi.h:73
void show_bar_graph(enum hmi_bar_graph_percentage percentage)
Uses the HMI's LEDs to display a nice "bar graph".
Definition: hmi.c:94
void(* encoder2push_handler)(void)
this handler is called when the switch in encoder 2 is pressed
Definition: hmi.h:92
Enumeration for the on-board LEDs.
Definition: leds.h:72
void show_led_pattern(hmi_led_pattern_t pattern)
Displays the specified pattern on the HMI's LEDs.
Definition: hmi.c:101
void poll_hmi(void)
Polls the HMI inputs and executes registered callbacks if an event occurred.
Definition: hmi.c:119
the bar graph is empty
Definition: hmi.h:69
void(* encoder1ccw_handler)(void)
this handler is called when encoder 1 is rotated counter-clockwise
Definition: hmi.h:88
the bar graph shows 3/8
Definition: hmi.h:72
void(* encoder2cw_handler)(void)
this handler is called when encoder 2 is rotated clockwise
Definition: hmi.h:90
LED7.
Definition: hmi.h:62
void init_hmi_module(const struct hmi_config *config)
Initializes the HMI module according to the provided configuration.
Definition: hmi.c:59
LED1.
Definition: hmi.h:56
the bar graph shows 1/8
Definition: hmi.h:70
LED5.
Definition: hmi.h:60
void(* button2_handler)(void)
this handler is called when button 2 is pressed
Definition: hmi.h:86
LED3.
Definition: hmi.h:58
const struct gpio_header * output_header
the pin header that is connected to the HMI board's X1 header
Definition: hmi.h:84
the bar graph shows 5/8
Definition: hmi.h:74