VLCB SDK
An opinionated SDK for VLCB protocol
Loading...
Searching...
No Matches
adapter.c
Go to the documentation of this file.
1#include "vlcb/net/adapter.h"
2
3#include <assert.h>
4
5#include "vlcb/common/can.h"
6
9 switch (err) {
11 return "call would block";
13 return "unsupported medium";
15 return "payload is too large";
17 return "invalid CAN id";
18 }
19 assert(false /* unimplemented case guard */);
20}
vlcb_error vlcb_net_adpt_ErrToStr(const 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
const char *const vlcb_error
Definition error.h:3