Project

General

Profile

Statistics
| Revision:

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

History | View | Annotate | Download (559 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    = 0x48,
11
    hltp_type_remote  = 0x52,
12
    hltp_type_bullet  = 0x42
13
} hltp_type;
14

    
15
int hltp_send_string(const char *p);
16
int hltp_send_host_info(const host_info_t *p);
17
int hltp_send_remote_info(const remote_info_t *p);
18
int hltp_send_bullet_info(const bullet_info_t *p);
19
hltp_type hltp_interpret(const uint8_t *p, const size_t sz, void **dest);
20
#endif //HLTP_H_INCLUDED