Loading...
Searching...
No Matches
packet.h
Go to the documentation of this file.
1
4
5
// ALLOW FORMATTING
6
#ifndef PACKET_H
7
#define PACKET_H
8
9
#include "stdint.h"
10
#include "stddef.h"
11
#include "stdbool.h"
12
13
typedef
struct
{
14
uint8_t size;
15
uint8_t *data;
16
}
Field
;
17
18
typedef
struct
{
19
uint8_t id;
20
uint8_t length;
21
Field
*fields;
22
}
Packet
;
23
24
bool
Packet_asBytes
(
Packet
*packet, uint8_t *out, uint8_t size);
25
26
#endif
Packet_asBytes
bool Packet_asBytes(Packet *packet, uint8_t *out, uint8_t size)
Definition
packet.c:24
Field
Definition
packet.h:13
Packet
Definition
packet.h:18
firmware
australis
sources
core
inc
packet.h
Generated by
1.13.2