VLCB SDK
An opinionated SDK for VLCB protocol
Loading...
Searching...
No Matches
release_node_num_serialize.c
Go to the documentation of this file.
2
3#include <assert.h>
4#include <memory.h>
5#include <stddef.h>
6
8
10 VlcbNetPacketDatagram *const packet, VlcbNetDgramReleaseNodeNumber data) {
11 assert(packet != NULL);
12 data.nodeNumber = htons(data.nodeNumber);
14 packet->payload_len = sizeof(data.nodeNumber);
15 memcpy(&packet->payload, &data.nodeNumber, sizeof(data.nodeNumber));
16}
static uint16_t htons(uint16_t hostshort)
Definition endian.h:21
void vlcb_net_pkt_dgram_module_ReleaseNodeNumber_serialize(VlcbNetPacketDatagram *const packet, VlcbNetDgramReleaseNodeNumber data)
VlcbNetDatagramPayload payload
@ VLCB_OPC_NODE_NUMBER_RELEASED
Definition vlcb_defs.h:812