[wip] working on display layout
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "disp_layout_types.h"
|
||||
#include "hw_button.h"
|
||||
#include "bitmap_disp_buttons.h"
|
||||
#include "ctrl_app_types.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
@@ -23,30 +24,12 @@ typedef struct
|
||||
uint8_t connected;
|
||||
} GEN_fg_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
GEN_FG_TYPE,
|
||||
GEN_PWM_TYPE,
|
||||
GEN_TYPE_MAX
|
||||
} GEN_type_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
GEN_type_t gen_type;
|
||||
void *gen;
|
||||
void *const gen;
|
||||
} GENERATOR_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
CHANNEL1,
|
||||
CHANNEL2,
|
||||
CHANNEL3,
|
||||
CHANNEL4,
|
||||
CHANNEL5,
|
||||
CHANNEL6,
|
||||
CHANNEL_MAX
|
||||
} GEN_channel_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
uint8_t freq_focus_digit;
|
||||
@@ -55,16 +38,25 @@ typedef struct
|
||||
uint8_t phas_focus_digit;
|
||||
uint8_t duty_focus_digit;
|
||||
|
||||
GEN_type_t gen_type;
|
||||
GEN_type_t curr_gen_type;
|
||||
void *generator;
|
||||
|
||||
GEN_channel_t curr_channel;
|
||||
LAY_state_t curr_layout;
|
||||
STATE_layout_t curr_state_lay;
|
||||
STATE_button_t curr_state_btn;
|
||||
|
||||
uint8_t isChannelChange;
|
||||
uint8_t isGraphChange;
|
||||
uint8_t isValueChange;
|
||||
uint8_t isButtonChange;
|
||||
uint8_t isButtonBlink;
|
||||
uint8_t timer_blink[LAY_BTN_MAX];
|
||||
uint8_t timer_blink[DISP_BTN_MAX];
|
||||
|
||||
} APP_data_t;
|
||||
|
||||
void APP_init(APP_data_t *app_data);
|
||||
void CTRL_buttonsInit(void);
|
||||
void CTRL_buttonsHandler(void);
|
||||
void CTRL_pushedDispBtnEvent(ButtonKey_t *key);
|
||||
void CTRL_pushedChanBtnEvent(ButtonKey_t *key);
|
||||
BITMAP_buttonName_t CTRL_getBitmapName(LAY_dispBtn_t disp_btn);
|
||||
|
||||
Reference in New Issue
Block a user