-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbinary_protocol.h
More file actions
43 lines (37 loc) · 1.15 KB
/
binary_protocol.h
File metadata and controls
43 lines (37 loc) · 1.15 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
//*****************************************************************************
//
//*****************************************************************************
#ifndef __BIN_PROTO_H__
#define __BIN_PROTO_H__
void show_ip(void *ipaddr, unsigned long ulCol, unsigned long ulRow);
//*****************************************************************************
//
// Application Entry Points.
//
//*****************************************************************************
void fausto_init(void);
void binary_protocol_appcall(void);
void festo_appcall(void);
//*****************************************************************************
//
// Message Format
//
//*****************************************************************************
struct binary_message
{
unsigned char Service;
unsigned char Data[63];
};
//*****************************************************************************
//
// Application State Variable Definition.
//
//*****************************************************************************
struct fausto_state
{
u8_t state;
u16_t count;
struct binary_message msg;
int packets_transmitted;
};
#endif // __BIN_PROTO_H__