root / proj / libs / uart / include / hltp.h @ 313
History | View | Annotate | Download (478 Bytes)
1 |
#ifndef HLTP_H_INCLUDED
|
---|---|
2 |
#define HLTP_H_INCLUDED
|
3 |
|
4 |
#include "uart.h" |
5 |
#include "proj_structures.h" |
6 |
|
7 |
typedef enum{ |
8 |
hltp_type_invalid = 0x00,
|
9 |
hltp_type_string = 0x53,
|
10 |
hltp_type_host = 0x54,
|
11 |
hltp_type_remote = 0x55
|
12 |
} hltp_type; |
13 |
|
14 |
int hltp_send_string(const char *p); |
15 |
int hltp_send_host_info(const host_info_t *p); |
16 |
int hltp_send_remote_info(const remote_info_t *p); |
17 |
hltp_type hltp_interpret(const uint8_t *p, const size_t sz, void **dest); |
18 |
#endif //HLTP_H_INCLUDED |