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
6
int
vlcb_defs_CanPriorityFromByte
(
7
const
uint8_t val,
VlcbCanPriority
*
const
prio) {
8
assert(prio != NULL);
9
10
if
(
vlcb_defs_IsCanPriorityValid
(val)) {
11
*prio = val;
12
return
0;
13
}
14
15
return
1;
16
}
vlcb_defs_CanPriorityFromByte
int vlcb_defs_CanPriorityFromByte(const uint8_t val, VlcbCanPriority *const prio)
Definition
can_prio_from_byte.c:6
can.h
VlcbCanPriority
VlcbCanPriority
Definition
common/inc/vlcb/common/can.h:15
vlcb_defs_IsCanPriorityValid
bool vlcb_defs_IsCanPriorityValid(VlcbCanPriority prio)
Definition
can_is_prio_valid.c:5
common
src
can
can_prio_from_byte.c
Generated on Mon Nov 4 2024 09:13:33 for VLCB SDK by
1.12.0