#include <stdio.h>
#include <stdlib.h>
#include <string.h>


typedef enum{
	Instruction_CMD = 0,
	Data_CMD,
}Character_CMD_t;

typedef enum{
    Line_default = 0,
    First_Line,
    Second_Line,
}LCD_line_t;
typedef enum{
    Power_On = 0,
    ACh_Setting = 1,
    BCh_Setting,
    Atten_150M,
    Atten_Wifi,
    Atten_30G,
}Switch_case_t;
typedef enum{
    Button_NOP = 0,
    Button_ESC,
    Button_MENU ,
    Button_UP ,
    Button_DOWN, 
    Button_ENTER, 
}AttenButton_t;

typedef enum{
    Menu_Layer = 0,
    AChSetting_Layer,
    AChSetting_150M_Layer,
    AChSetting_WIFI_Layer,
    AChSetting_30GHz_Layer,
    BChSetting_Layer,
    BChSetting_150M_Layer,
    BChSetting_WIFI_Layer,
    BChSetting_30GHz_Layer,
    
    AChSetting_SelectWIFI2_4GHz_Layer,    
    AChSetting_SelectWIFI5_8GHz_Layer,  
    AChSetting_Select30GHz28_28_5_Layer,    
    AChSetting_Select30GHz28_5_29_Layer,    
    AChSetting_Select30GHz29_29_5_Layer,        
    AChSetting_Select30GHz29_5_30_Layer, 
    BChSetting_SelectWIFI2_4GHz_Layer,    
    BChSetting_SelectWIFI5_8GHz_Layer,
    BChSetting_Select30GHz28_28_5_Layer,    
    BChSetting_Select30GHz28_5_29_Layer,    
    BChSetting_Select30GHz29_29_5_Layer,        
    BChSetting_Select30GHz29_5_30_Layer, 
    
    AChSetting_Change150M_Layer,
    AChSetting_ChangeWIFI2_4GHz_Layer,    
    AChSetting_ChangeWIFI5_8GHz_Layer,        
    AChSetting_Change30GHz28_28_5_Layer,    
    AChSetting_Change30GHz28_5_29_Layer,    
    AChSetting_Change30GHz29_29_5_Layer,        
    AChSetting_Change30GHz29_5_30_Layer,    
    BChSetting_Change150M_Layer,
    BChSetting_ChangeWIFI2_4GHz_Layer,    
    BChSetting_ChangeWIFI5_8GHz_Layer,        
    BChSetting_Change30GHz28_28_5_Layer,    
    BChSetting_Change30GHz28_5_29_Layer,    
    BChSetting_Change30GHz29_29_5_Layer,        
    BChSetting_Change30GHz29_5_30_Layer,  
}Layer_t;

extern void LCD_M68_DataWrite_COMMAND(uint8_t line,uint8_t cmd,uint8_t* data);
extern void LCD_M68_DataWrite_Clear(void);
extern void Character_Lcd_chMenu(AttenButton_t button);

extern void ButtonDataSet(uint8_t val);
extern uint8_t ButtonDataGet(void);

extern uint8_t LCD_Button_Read(void);


