-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathkeyman64.h
More file actions
55 lines (42 loc) · 1.39 KB
/
Copy pathkeyman64.h
File metadata and controls
55 lines (42 loc) · 1.39 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef KEYMAN64_H
#define KEYMAN64_H
#include <stdio.h>
#include "target.h"
#if windows
#include <windows.h>
#endif
#define USBASP_CONNECT 1
#define USBASP_WRITEFLASH 6
#define USBASP_READFLASH 4
#define USBASP_DISCONNECT 2
void version(void);
void identify(void);
bool reset(void);
void complain(void);
void usage(void);
void keys(void);
int convert(int argc, char **argv);
int configure(int argc, char **argv);
int update(int argc, char **argv);
int command(int argc, char **argv);
bool expect(DeviceInfo *device, const char* message);
void failed(DeviceInfo *device);
bool read_file(char* filename, uint8_t **data, int *size);
bool Config_parse(Config* self, FILE* in);
void Config_write(Config *self, FILE* out);
void Config_print(Config *self, FILE* out);
void Binding_write(Binding *self, FILE* out);
void Binding_print(Binding *self, FILE* out);
bool Key_parse(uint8_t *key, char* spec, bool reportUnknownSymbol);
void Key_write(uint8_t key, FILE* out);
void Key_print(uint8_t key, FILE* out);
bool Command_parse(Command *self, char* spec);
void Command_write(Command *self, FILE* out);
void Command_print(Command *self, FILE* out);
bool Expansion_parse(Expansion* self, char* spec);
void Expansion_write(Expansion* self, FILE* out);
void Expansion_print(Expansion* self, FILE* out);
#if !posix
unsigned int sleep(unsigned int sec) { Sleep(sec*1000); return 0; }
#endif
#endif // KEYMAN64_H