Context for the water tank application. More...

Data Fields | |
| struct workqueue_task * | task |
| Pointer to the workqueue task of the application. | |
| struct wtk_basic_frame * | frame |
| Pointer to the main frame of the application. | |
| struct font | old_sysfont |
| Copy of the sysfont before it is modified by the application. | |
| struct wtk_progress_bar * | level |
| Pointer to progress bar widget for tank level. | |
| struct wtk_slider * | supply |
| Pointer to slider widget for supply. | |
| struct wtk_progress_bar * | demand |
| Pointer to progress bar widget for demand. | |
| struct timer | timer |
| Timer struct needed for the timer driver. | |
| enum tank_loader_state | loader_state |
| State variable for application loader task. | |
| bool | level_alarm |
| Flag indicating critical tank level. | |
| bool | flow_alarm |
| Flag indicating that demand is greater than supply and tank level. | |
| uint16_t | timer_delay |
| Timer delay needed for application tick rate. | |
| uint16_t | rand_ticks |
| Tick count until update of random variable. | |
| int32_t | rand |
| Random variable to get time-varying water demand. | |
| struct gfx_bitmap | bitmaps [NR_OF_BITMAPS] |
| Metadata for alarm light bitmaps. | |
Context for the water tank application.
Definition at line 245 of file app_tank.c.
| struct gfx_bitmap tank_context::bitmaps[NR_OF_BITMAPS] |
Metadata for alarm light bitmaps.
Definition at line 273 of file app_tank.c.
Referenced by app_tank_launch(), tank_loader(), and tank_worker().
| struct wtk_progress_bar* tank_context::demand |
Pointer to progress bar widget for demand.
Definition at line 257 of file app_tank.c.
Referenced by app_tank_launch(), and tank_worker().
Flag indicating that demand is greater than supply and tank level.
Definition at line 265 of file app_tank.c.
Referenced by app_tank_launch(), and tank_worker().
| struct wtk_basic_frame* tank_context::frame |
Pointer to the main frame of the application.
Definition at line 249 of file app_tank.c.
Referenced by app_tank_launch(), and tank_loader().
| struct wtk_progress_bar* tank_context::level |
Pointer to progress bar widget for tank level.
Definition at line 253 of file app_tank.c.
Referenced by app_tank_launch(), and tank_worker().
Flag indicating critical tank level.
Definition at line 263 of file app_tank.c.
Referenced by app_tank_launch(), and tank_worker().
State variable for application loader task.
Definition at line 261 of file app_tank.c.
Referenced by app_tank_launch(), and tank_loader().
| struct font tank_context::old_sysfont |
Copy of the sysfont before it is modified by the application.
Definition at line 251 of file app_tank.c.
Referenced by app_tank_launch(), tank_frame_handler(), and tank_loader().
Random variable to get time-varying water demand.
Definition at line 271 of file app_tank.c.
Referenced by app_tank_launch(), and tank_worker().
Tick count until update of random variable.
Definition at line 269 of file app_tank.c.
Referenced by app_tank_launch(), and tank_worker().
| struct wtk_slider* tank_context::supply |
Pointer to slider widget for supply.
Definition at line 255 of file app_tank.c.
Referenced by app_tank_launch(), and tank_worker().
| struct workqueue_task* tank_context::task |
Pointer to the workqueue task of the application.
Definition at line 247 of file app_tank.c.
Referenced by app_tank_launch(), and tank_timer_callback().
| struct timer tank_context::timer |
Timer struct needed for the timer driver.
Definition at line 259 of file app_tank.c.
Referenced by app_tank_launch(), tank_frame_handler(), tank_loader(), and tank_timer_callback().
Timer delay needed for application tick rate.
Definition at line 267 of file app_tank.c.
Referenced by app_tank_launch(), tank_loader(), and tank_timer_callback().
1.6.3