29 lines
570 B
C
29 lines
570 B
C
#ifndef __UART_LCD_H__
|
|
#define __UART_LCD_H__
|
|
|
|
#include "main.h"
|
|
|
|
typedef struct
|
|
{
|
|
uint8_t page_num;
|
|
uint8_t key_state[3];
|
|
uint8_t current_value[2];
|
|
uint8_t lcd_flag;
|
|
} uart_lcd_t;
|
|
extern uart_lcd_t uart_lcd_state;
|
|
typedef struct
|
|
{
|
|
uint8_t confirm_key_flag;
|
|
uint8_t confirm_key_flag_last;
|
|
int direction;
|
|
int encode_num_last;
|
|
int encode_num;
|
|
} ec11_t;
|
|
extern ec11_t ec11_data;
|
|
|
|
void uart_lcd_draw_ipaddr(void);
|
|
void uart_lcd_init(void);
|
|
void uart_lcd_current_out(uint8_t channel);
|
|
void uart_lcd_channel_switch(uint8_t channel);
|
|
#endif
|