VLCB SDK
An opinionated SDK for VLCB protocol
Loading...
Searching...
No Matches
common/inc/vlcb/common/can.h
Go to the documentation of this file.
1#pragma once
2
3#include <inttypes.h>
4#include <stdbool.h>
5#include <stdint.h>
6
7#include "vlcb_defs.h"
8
9typedef uint8_t VlcbCanId;
10
11int vlcb_defs_NewCanId(uint8_t value, VlcbCanId *const id);
13
14typedef uint8_t VlcbCanPriority;
23
24#define VLCB_CAN_PRIO_DEFAULT VLCB_CAN_PRIO_NORMAL
25
28int vlcb_defs_CanPriorityFromByte(uint8_t val, VlcbCanPriority *const prio);
bool vlcb_defs_IsCanIdValid(VlcbCanId id)
@ VLCB_CAN_PRIO_SELF_ENUM
int vlcb_defs_NewCanId(uint8_t value, VlcbCanId *const id)
Definition can_id_new.c:6
bool vlcb_defs_IsCanPriorityValid(VlcbCanPriority prio)
VlcbCanPriority vlcb_defs_CanPriorityFromOpcode(VlcbOpCode opc)
int vlcb_defs_CanPriorityFromByte(uint8_t val, VlcbCanPriority *const prio)
uint8_t VlcbCanId
VlcbOpCode
Definition vlcb_defs.h:493