Project

General

Profile

Statistics
| Revision:

root / proj / libs / uart / include / hltp.h @ 323

History | View | Annotate | Download (559 Bytes)

1 289 up20180642
#ifndef HLTP_H_INCLUDED
2
#define HLTP_H_INCLUDED
3
4
#include "uart.h"
5 311 up20180655
#include "proj_structures.h"
6 289 up20180642
7
typedef enum{
8
    hltp_type_invalid = 0x00,
9 311 up20180655
    hltp_type_string  = 0x53,
10 320 up20180655
    hltp_type_host    = 0x48,
11
    hltp_type_remote  = 0x52,
12
    hltp_type_bullet  = 0x42
13 289 up20180642
} hltp_type;
14
15
int hltp_send_string(const char *p);
16 311 up20180655
int hltp_send_host_info(const host_info_t *p);
17
int hltp_send_remote_info(const remote_info_t *p);
18 320 up20180655
int hltp_send_bullet_info(const bullet_info_t *p);
19 289 up20180642
hltp_type hltp_interpret(const uint8_t *p, const size_t sz, void **dest);
20
#endif //HLTP_H_INCLUDED