VLCB SDK
An opinionated SDK for VLCB protocol
Loading...
Searching...
No Matches
general.h
Go to the documentation of this file.
1#pragma once
2
3#include "vlcb/common/can.h"
4#include "vlcb/common/node.h"
8#include <stdint.h>
9
10#define NS vlcb_net_pkt_dgram_general
11#define S Dgram
12#define P VlcbNetPacketDatagram
13
14DEFINE_PACKET_WO_DATA(NS, S, P, GeneralAck)
15DEFINE_PACKET_WO_DATA(NS, S, P, GeneralNack)
16DEFINE_PACKET_WO_DATA(NS, S, P, BusHalt)
17DEFINE_PACKET_WO_DATA(NS, S, P, BusResume)
18DEFINE_PACKET_WO_DATA(NS, S, P, RestartAllNodes)
19
20DEFINE_PACKET_DATA(NS, S, P, DebugMsg1, uint8_t byte;)
21DEFINE_PACKET_DATA(NS, S, P, ExtOpc0, uint8_t extOpc;)
22
25DEFINE_PACKET_DATA(NS, S, P, QueryNodeDataShort, VlcbNodeNumber nodeNumber;)
26DEFINE_PACKET_DATA(NS, S, P, RebootIntoBootloader, VlcbNodeNumber nodeNumber;)
27DEFINE_PACKET_DATA(NS, S, P, ForceCanEnumeration, VlcbNodeNumber nodeNumber;)
29DEFINE_PACKET_DATA(NS, S, P, ExtOpc1, uint8_t extOpc; uint8_t payload[1];)
30
32 VlcbCommandError error;)
34DEFINE_PACKET_DATA(NS, S, P, ExtOpc2, uint8_t extOpc; uint8_t payload[2];)
35
36DEFINE_PACKET_DATA(NS, S, P, ExtOpc3, uint8_t extOpc; uint8_t payload[3];)
37#undef NS
38#undef S
39#undef P
uint8_t VlcbCanId
#define NS
Definition general.h:10
#define P
Definition general.h:12
#define S
Definition general.h:11
VlcbNodeNumber nodeNumber
uint16_t VlcbNodeNumber
Definition node.h:8
#define DEFINE_PACKET_WO_DATA(ns, sock, pktT, name)
#define DEFINE_PACKET_DATA(ns, sock, pktT, name,...)