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
"
5
#include "
vlcb/common/vlcb_defs.h
"
6
#include "
vlcb/net/packet/datagram.h
"
7
#include "
vlcb/net/packet/serialization.h
"
8
#include <stdint.h>
9
10
#define NS vlcb_net_pkt_dgram_general
11
#define S Dgram
12
#define P VlcbNetPacketDatagram
13
14
DEFINE_PACKET_WO_DATA
(
NS
,
S
,
P
, GeneralAck)
15
DEFINE_PACKET_WO_DATA
(
NS
,
S
,
P
, GeneralNack)
16
DEFINE_PACKET_WO_DATA
(
NS
,
S
,
P
, BusHalt)
17
DEFINE_PACKET_WO_DATA
(
NS
,
S
,
P
, BusResume)
18
DEFINE_PACKET_WO_DATA
(
NS
,
S
,
P
, RestartAllNodes)
19
20
DEFINE_PACKET_DATA
(
NS
,
S
,
P
, DebugMsg1, uint8_t
byte
;)
21
DEFINE_PACKET_DATA
(
NS
,
S
,
P
, ExtOpc0, uint8_t extOpc;)
22
23
DEFINE_PACKET_DATA
(
NS
,
S
,
P
, WriteAck,
VlcbNodeNumber
nodeNumber
;)
24
DEFINE_PACKET_DATA
(
NS
,
S
,
P
, QueryNodeData,
VlcbNodeNumber
nodeNumber
;)
25
DEFINE_PACKET_DATA
(
NS
,
S
,
P
, QueryNodeDataShort,
VlcbNodeNumber
nodeNumber
;)
26
DEFINE_PACKET_DATA
(
NS
,
S
,
P
, RebootIntoBootloader,
VlcbNodeNumber
nodeNumber
;)
27
DEFINE_PACKET_DATA
(
NS
,
S
,
P
, ForceCanEnumeration,
VlcbNodeNumber
nodeNumber
;)
28
DEFINE_PACKET_DATA
(
NS
,
S
,
P
, RestartNode,
VlcbNodeNumber
nodeNumber
;)
29
DEFINE_PACKET_DATA
(
NS
,
S
,
P
, ExtOpc1, uint8_t extOpc; uint8_t
payload
[1];)
30
31
DEFINE_PACKET_DATA
(
NS
,
S
,
P
, CommandError,
VlcbNodeNumber
nodeNumber
;
32
VlcbCommandError
error;)
33
DEFINE_PACKET_DATA
(
NS
,
S
,
P
, SetCanId,
VlcbNodeNumber
nodeNumber
;
VlcbCanId
id;)
34
DEFINE_PACKET_DATA
(
NS
,
S
,
P
, ExtOpc2, uint8_t extOpc; uint8_t
payload
[2];)
35
36
DEFINE_PACKET_DATA
(
NS
,
S
,
P
, ExtOpc3, uint8_t extOpc; uint8_t
payload
[3];)
37
#undef
NS
38
#undef
S
39
#undef
P
can.h
VlcbCanId
uint8_t VlcbCanId
Definition
common/inc/vlcb/common/can.h:9
VlcbCommandError
VlcbCommandError
Definition
common/inc/vlcb/common/module.h:29
NS
#define NS
Definition
general.h:10
P
#define P
Definition
general.h:12
S
#define S
Definition
general.h:11
payload
uint8_t payload[4]
Definition
net/inc/vlcb/net/packet/datagram/dcc.h:75
nodeNumber
VlcbNodeNumber nodeNumber
Definition
net/inc/vlcb/net/packet/datagram/event.h:20
node.h
VlcbNodeNumber
uint16_t VlcbNodeNumber
Definition
node.h:8
datagram.h
serialization.h
DEFINE_PACKET_WO_DATA
#define DEFINE_PACKET_WO_DATA(ns, sock, pktT, name)
Definition
serialization.h:22
DEFINE_PACKET_DATA
#define DEFINE_PACKET_DATA(ns, sock, pktT, name,...)
Definition
serialization.h:13
vlcb_defs.h
net
inc
vlcb
net
packet
datagram
general.h
Generated on Mon Nov 4 2024 09:13:33 for VLCB SDK by
1.12.0