Host Communication Protocol  2.0
doc/md/2_hcpframe.md
Go to the documentation of this file.
1 \page hcpf HCP frame format
2 
3 The Host Communication Protocol (HCP) describes a general way of sending commands and information
4 between devices.
5 
6 \image html hcp.svg "HCP frame format"
7 \image latex hcp.eps "HCP frame format"
8 
9 \section cmd Command
10 
11 The Commands define the general action that is going to be executed. However, each command
12 can have several Arguments each with data attached.
13 
14 | CMD | Num Args | Payload |
15 | ------- | -------- | -------- |
16 | 2 bytes | 2 bytes | xx bytes |
17 
18 All fields are using unsigned data types.
19 
20 \section arg Argument
21 
22 The Argument is used as a complement to the command if it is needed and can contain arbitrary data.
23 
24 | ARG | Size | Data |
25 | ------- | --------| ---------- |
26 | 2 bytes | 2 bytes | size bytes |
27 
28 All fields are using unsigned data types.