tank_context Struct Reference
[Water tank application]

Context for the water tank application. More...

Collaboration diagram for tank_context:
Collaboration graph
[legend]

Data Fields

struct workqueue_tasktask
 Pointer to the workqueue task of the application.
struct wtk_basic_frameframe
 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_barlevel
 Pointer to progress bar widget for tank level.
struct wtk_slidersupply
 Pointer to slider widget for supply.
struct wtk_progress_bardemand
 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.

Detailed Description

Context for the water tank application.

Definition at line 245 of file app_tank.c.


Field Documentation

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().

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().

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().

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().

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().

Pointer to slider widget for supply.

Definition at line 255 of file app_tank.c.

Referenced by app_tank_launch(), and tank_worker().

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().

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().


The documentation for this struct was generated from the following file:
Generated on Thu Apr 29 14:10:03 2010 for display-demo by  doxygen 1.6.3