Project

General

Profile

Statistics
| Revision:

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

History | View | Annotate | Download (478 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
    hltp_type_host    = 0x54,
11
    hltp_type_remote  = 0x55
12 289 up20180642
} hltp_type;
13
14
int hltp_send_string(const char *p);
15 311 up20180655
int hltp_send_host_info(const host_info_t *p);
16
int hltp_send_remote_info(const remote_info_t *p);
17 289 up20180642
hltp_type hltp_interpret(const uint8_t *p, const size_t sz, void **dest);
18
#endif //HLTP_H_INCLUDED