2023-07-06 09:42:13 +00:00
|
|
|
#ifndef __MENU_H__
|
|
|
|
#define __MENU_H__
|
|
|
|
|
2024-02-06 09:03:13 +00:00
|
|
|
#include "stm32f10x.h"
|
|
|
|
#include "stdbool.h"
|
2024-02-06 09:38:48 +00:00
|
|
|
#include "menuConfig.h"
|
2024-04-06 18:01:42 +00:00
|
|
|
#include "bsp_usart.h"
|
2023-07-06 09:42:13 +00:00
|
|
|
|
|
|
|
void Menu_Team(void);
|
2024-04-06 18:01:42 +00:00
|
|
|
void AddPage(const char *name, xpPage page, xpItem item, xpPage LocalPage, xpPage nextpage, ItemFunction function);
|
2024-02-06 09:03:13 +00:00
|
|
|
void AddItem(const char *Name, Item_Type Type, int *Data, xpItem item, xpPage LocalPage, xpPage nextpage, ItemFunction function);
|
2023-09-03 17:09:33 +00:00
|
|
|
int8_t Line(uint8_t AllTime,uint8_t Time_Now,int8_t Tgt,int8_t Now);
|
2024-02-06 09:03:13 +00:00
|
|
|
int PID(int Targrt, int Now, Pid_Error *Obj);
|
|
|
|
bool Draw_OptionPlace(xpItem now_item, xpItem next_item);
|
|
|
|
void Draw_DialogBox(uint16_t x,uint16_t y,uint16_t w,uint16_t h);
|
|
|
|
void Draw_DialogRBox(uint16_t x,uint16_t y,uint16_t w,uint16_t h,uint16_t r);
|
|
|
|
void DialogScale_Show(uint8_t x,uint8_t y,uint8_t Targrt_w,uint8_t Targrt_h);
|
|
|
|
void Draw_Page(uint8_t pos, xpPage Page, uint8_t LineSpacing, xpItem now_item,xpItem next_item);
|
|
|
|
void Draw_Menu(uint8_t pos, xpPage Page, uint8_t LineSpacing, xpItem now_item,xpItem next_item);
|
2023-11-23 11:08:44 +00:00
|
|
|
uint8_t ui_disapper(uint8_t disapper);
|
2024-01-29 11:33:03 +00:00
|
|
|
void Switch_Menu_State(Menu_State state);
|
2024-02-06 09:03:13 +00:00
|
|
|
Menu_State BtnScan(void);
|
2024-04-06 18:01:42 +00:00
|
|
|
void Menu_Task(void);
|
2023-07-06 09:42:13 +00:00
|
|
|
void Menu_Init(void);
|
|
|
|
|
|
|
|
#endif
|