VLCB SDK
An opinionated SDK for VLCB protocol
Loading...
Searching...
No Matches
packet/datagram.h
Go to the documentation of this file.
1#pragma once
2
3#include <inttypes.h>
4
7
8#define VLCB_DGRAM_PKT_MAX_PAYLOAD 7
9
18
24
46
49
51vlcb_net_pkt_dgram_NewUnchecked(VlcbOpCode opc, uint8_t payload_len,
53 VlcbNetPacketDatagram *const packet);
55vlcb_net_pkt_dgram_New(VlcbOpCode opc, uint8_t payload_len,
57 VlcbNetPacketDatagram *const packet);
const char *const vlcb_error
Definition error.h:3
vlcb_error vlcb_net_pkt_dgram_ConstructErrToStr(VlcbNetPacketDatagramConstructErr err)
#define VLCB_DGRAM_PKT_MAX_PAYLOAD
VlcbNetPacketDatagramConstructErr vlcb_net_pkt_dgram_New(VlcbOpCode opc, uint8_t payload_len, const VlcbNetDatagramPayload *const payload, VlcbNetPacketDatagram *const packet)
VlcbNetPacketDatagramConstructErr vlcb_net_pkt_dgram_NewUnchecked(VlcbOpCode opc, uint8_t payload_len, const VlcbNetDatagramPayload *const payload, VlcbNetPacketDatagram *const packet)
uint8_t VlcbNetDatagramPayload[7]
VlcbNetPacketDatagramConstructErr
@ VLCB_DGRAM_PKT_CONSTRUCT_ERR_COUNT
@ VLCB_DGRAM_PKT_CONSTRUCT_ERR_PAYLOAD_TOO_LARGE
@ VLCB_DGRAM_PKT_CONSTRUCT_ERR_OK
@ VLCB_DGRAM_PKT_CONSTRUCT_ERR_INVALID_OPCODE
VlcbNetDatagramPayload payload
VlcbOpCode
Definition vlcb_defs.h:493