Microchip® Advanced Software Framework

app_calculator_t Struct Reference

Calculator context.

Data Fields

struct {
enum  {
  CALC_STATE_WAIT_VAL1,
  CALC_STATE_WAIT_OP,
  CALC_STATE_WAIT_VAL2,
  CALC_STATE_READY,
  CALC_STATE_ERROR
}
 Current calculator state. More...
 
   int32_t   display
 Current calculator display value. More...
 
   int32_t   operand
 Current calculator operand. More...
 
   char   operation
 Current calculator operator. More...
 
   int32_t   result
 Current calculator result. More...
 
   enum app_calculator_t:: { ... }    state
 Current calculator state. More...
 
calc_regs
 Calculator internal state registers. More...
 
struct wtk_basic_frameframe
 Pointer to frame for application. More...
 
struct gfx_bitmap frame_bg
 Frame background object. More...
 
struct wtk_labeltext
 Pointer to display label. More...
 
struct wtk_basic_frametext_frame
 Pointer to Value text frame background. More...
 
struct gfx_bitmap text_frame_bg
 Value Frame background object. More...
 

struct { ... } app_calculator_t::calc_regs

Calculator internal state registers.

Referenced by app_calc_handler(), app_calc_update_disp(), and calc_perform_operation().

int32_t app_calculator_t::display

Current calculator display value.

Referenced by app_calc_handler(), and app_calc_update_disp().

struct wtk_basic_frame* app_calculator_t::frame

Pointer to frame for application.

struct gfx_bitmap app_calculator_t::frame_bg

Frame background object.

int32_t app_calculator_t::operand

Current calculator operand.

Referenced by app_calc_handler(), and calc_perform_operation().

char app_calculator_t::operation

Current calculator operator.

Referenced by app_calc_handler(), and calc_perform_operation().

int32_t app_calculator_t::result

Current calculator result.

Referenced by app_calc_handler(), and calc_perform_operation().

enum { ... } app_calculator_t::state

Current calculator state.

Referenced by app_calc_handler(), app_calc_update_disp(), and calc_perform_operation().

struct wtk_label* app_calculator_t::text

Pointer to display label.

Referenced by app_calc_update_disp().

struct wtk_basic_frame* app_calculator_t::text_frame

Pointer to Value text frame background.

struct gfx_bitmap app_calculator_t::text_frame_bg

Value Frame background object.