10 const VlcbCanFrameId id,
const bool is_rtr,
const uint8_t payload_len,
12 assert(
payload != NULL && packet != NULL);
13 assert(is_rtr ==
false ||
20 if (payload_len > 0) {
39 VLCBLOG_DEBUG(
"invalid priority received. aliasing to default");
54 assert(packet != NULL &&
id != NULL);
72 assert(packet != NULL);
@ VLCB_NET_ADPT_ERR_INVALID_CANID
@ VLCB_NET_ADPT_ERR_PAYLOAD_TOO_LARGE
uint8_t VlcbNetAdptPayload[8]
#define VLCB_NET_ADPT_MAX_PAYLOAD
VlcbNetHwAddr vlcb_net_NewCanIdHwAddr(VlcbCanId id)
bool vlcb_defs_IsCanIdValid(VlcbCanId id)
int vlcb_defs_NewCanId(uint8_t value, VlcbCanId *const id)
bool vlcb_defs_IsCanPriorityValid(VlcbCanPriority prio)
VlcbCanPriority vlcb_defs_CanPriorityFromOpcode(VlcbOpCode opc)
#define VLCB_CAN_PRIO_DEFAULT
int vlcb_defs_CanPriorityFromByte(uint8_t val, VlcbCanPriority *const prio)
#define VLCBLOG_DEBUG(msg)
#define VLCB_NET_ADPT_CAN_MAX_PAYLOAD
bool vlcb_net_adpt_IsPacketValid(const VlcbNetAdptPkt *const packet)
int vlcb_net_adpt_NewCanFrameIdFromPkt(const VlcbNetAdptPkt *const packet, VlcbCanFrameId *const id)
Construct new CAN frame ID from a packet.
VlcbNetAdptErr vlcb_net_adpt_ParseRawCanData(const VlcbCanFrameId id, const bool is_rtr, const uint8_t payload_len, const VlcbNetAdptPayload *const payload, VlcbNetAdptPkt *const packet)
Parse the CAN packet data into the inner format.
uint16_t VlcbCanFrameId
CAN frame id used in transmission.
VlcbNetAdptPayload payload