VLCB SDK
An opinionated SDK for VLCB protocol
Loading...
Searching...
No Matches
can_prio_from_byte.c
Go to the documentation of this file.
1#include "vlcb/common/can.h"
2
3#include <assert.h>
4#include <stddef.h>
5
7 const uint8_t val, VlcbCanPriority *const prio) {
8 assert(prio != NULL);
9
11 *prio = val;
12 return 0;
13 }
14
15 return 1;
16}
int vlcb_defs_CanPriorityFromByte(const uint8_t val, VlcbCanPriority *const prio)
bool vlcb_defs_IsCanPriorityValid(VlcbCanPriority prio)