VLCB SDK
An opinionated SDK for VLCB protocol
Loading...
Searching...
No Matches
packet_parse.h
Go to the documentation of this file.
1#pragma once
2
3#include <stdint.h>
4
5#include "../../adapter.h"
6
16typedef uint16_t VlcbCanFrameId;
17
39 VlcbCanFrameId id, bool is_rtr, uint8_t payload_len,
40 const VlcbNetAdptPayload *const payload, VlcbNetAdptPkt *const packet);
41
60 VlcbCanFrameId *const id);
61
VlcbNetAdptErr
Definition adapter.h:39
uint8_t VlcbNetAdptPayload[8]
Definition adapter.h:11
bool vlcb_net_adpt_IsCanAdptPktValid(const VlcbNetAdptPkt *const packet)
Check if the packed passed in is correctly constructed.
uint16_t VlcbCanFrameId
CAN frame id used in transmission.
VlcbNetAdptErr vlcb_net_adpt_ParseRawCanData(VlcbCanFrameId id, bool is_rtr, uint8_t payload_len, const VlcbNetAdptPayload *const payload, VlcbNetAdptPkt *const packet)
Parse the CAN packet data into the inner format.
Definition packet_parse.c:9
int vlcb_net_adpt_NewCanFrameIdFromPkt(const VlcbNetAdptPkt *const packet, VlcbCanFrameId *const id)
Construct new CAN frame ID from a packet.