VLCB SDK
An opinionated SDK for VLCB protocol
Loading...
Searching...
No Matches
adapter.h
Go to the documentation of this file.
1#pragma once
2
3#include <inttypes.h>
4#include <stdbool.h>
5
8
9#define VLCB_NET_ADPT_MAX_PAYLOAD 8
10
12
13#include "adapter/can/packet.h"
14#include "vlcb/net/addr.h"
15
19
34
38
74
76
78 IVlcbNetAdpt,
79
87 _INTERFACE_SELF_PTR_MUT(IVlcbNetAdpt),
88 VlcbNetAdptPkt *const pkt);
89
94 _INTERFACE_SELF_PTR_MUT(IVlcbNetAdpt),
95 const VlcbNetAdptPkt *const pkt);
96
101 _INTERFACE_SELF_PTR(IVlcbNetAdpt)););
102;
vlcb_error vlcb_net_adpt_ErrToStr(VlcbNetAdptErr err)
Definition adapter.c:7
VlcbNetAdptErr
Definition adapter.h:39
@ VLCB_NET_ADPT_ERR_INVALID_CANID
Definition adapter.h:66
@ VLCB_NET_ADPT_ERR_OK
Definition adapter.h:40
@ VLCB_NET_ADPT_ERR_UNSUPPORTED_MEDIUM
Definition adapter.h:58
@ VLCB_NET_ADPT_ERR_WOULD_BLOCK
Definition adapter.h:52
@ VLCB_NET_ADPT_ERR_PAYLOAD_TOO_LARGE
Definition adapter.h:64
@ VLCB_NET_ADPT_ERR_COUNT
Definition adapter.h:72
uint8_t VlcbNetAdptPayload[8]
Definition adapter.h:11
#define VLCB_NET_ADPT_MAX_PAYLOAD
Definition adapter.h:9
VlcbNetMedium
Definition addr.h:5
const char *const vlcb_error
Definition error.h:3
#define _INTERFACE_DECLARE(T,...)
Definition interface.h:5
#define _INTERFACE_METHOD_DECLARE(retT, name,...)
Definition interface.h:10
#define _INTERFACE_SELF_PTR_MUT(T)
Definition interface.h:16
#define _INTERFACE_SELF_PTR(T)
Definition interface.h:15
VlcbNetMedium medium
Definition adapter.h:36
VlcbNetAdptPktMeta meta
Definition adapter.h:30
VlcbNetMedium medium
Definition adapter.h:28
uint8_t payload_len
Definition adapter.h:31
VlcbNetHwAddr src_addr
Definition adapter.h:29
VlcbNetAdptPayload payload
Definition adapter.h:32
VlcbNetAdptCanPktMeta can
Definition adapter.h:17