21 return "vlcb payload too large";
23 return "vlcb invalid opcode";
const char *const vlcb_error
VlcbNetProtocol vlcb_net_pkt_DetectProtocol(VlcbOpCode opc)
vlcb_error vlcb_net_pkt_ConstructErrToStr(VlcbNetPacketConstructErr err)
VlcbNetPacketConstructErr vlcb_net_pkt_New(VlcbOpCode opc, uint8_t payload_len, const VlcbNetPayload *const payload, VlcbNetPacket *const packet)
void vlcb_net_pkt_NewUnchecked(VlcbNetProtocol proto, VlcbOpCode opc, uint8_t payload_len, const VlcbNetPayload *const payload, VlcbNetPacket *const packet)
uint8_t VlcbNetPayload[7]
@ VLCB_NET_PROTO_DATAGRAM
VlcbNetPacketConstructErr
@ VLCB_NET_PKT_CONSTRUCT_ERR_OK
@ VLCB_NET_PKT_CONSTRUCT_ERR_COUNT
@ VLCB_NET_PKT_CONSTRUCT_ERR_INVALID_OPCODE
@ VLCB_NET_PKT_CONSTRUCT_ERR_PAYLOAD_TOO_LARGE