forked from DangerousPrototypes/BusPirate5-firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
displays.h
37 lines (32 loc) · 1.08 KB
/
displays.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef __DISPLAYS_H__
#define __DISPLAYS_H__
//#include "pirate.h"
enum
{
DISP_DEFAULT = 0,
#ifdef BP_USE_SCOPE
DISP_SCOPE,
#endif
MAXDISPLAY
};
typedef struct _display
{
void (*display_periodic)(void); // service to regular poll whether a byte has arrived or something interesting has happened
uint32_t (*display_setup)(void); // setup UI
uint32_t (*display_setup_exc)(void); // real setup
void (*display_cleanup)(void); // cleanup for HiZ
void (*display_settings)(void); // display settings
void (*display_help)(void); // display protocol specific help
char display_name[10]; // friendly name (promptname)
uint32_t (*display_command)(struct command_result *result); // per mode command parser - ignored if 0
void (*display_lcd_update)(uint32_t flags); // replacement for ui_lcd_update if non-0
} _display;
extern struct _display displays[MAXDISPLAY];
void nullfunc1(void);
uint32_t nullfunc2(uint32_t c);
uint32_t nullfunc3(void);
void nullfunc4(uint32_t c);
const char *nullfunc5(void);
void nohelp(void);
void noperiodic(void);
#endif