VLCB SDK
An opinionated SDK for VLCB protocol
Loading...
Searching...
No Matches
can_is_prio_valid.c
Go to the documentation of this file.
1
#include "
vlcb/common/can.h
"
2
3
#include <stdbool.h>
4
5
bool
vlcb_defs_IsCanPriorityValid
(
const
VlcbCanPriority
prio) {
6
switch
(prio) {
7
case
VLCB_CAN_PRIO_SELF_ENUM
:
8
case
VLCB_CAN_PRIO_HIGH
:
9
case
VLCB_CAN_PRIO_ABOVE
:
10
case
VLCB_CAN_PRIO_NORMAL
:
11
case
VLCB_CAN_PRIO_LOW
:
12
case
VLCB_CAN_PRIO_LOWEST
:
13
return
true
;
14
default
:
15
return
false
;
16
}
17
}
vlcb_defs_IsCanPriorityValid
bool vlcb_defs_IsCanPriorityValid(const VlcbCanPriority prio)
Definition
can_is_prio_valid.c:5
can.h
VlcbCanPriority
VlcbCanPriority
Definition
common/inc/vlcb/common/can.h:15
VLCB_CAN_PRIO_NORMAL
@ VLCB_CAN_PRIO_NORMAL
Definition
common/inc/vlcb/common/can.h:19
VLCB_CAN_PRIO_SELF_ENUM
@ VLCB_CAN_PRIO_SELF_ENUM
Definition
common/inc/vlcb/common/can.h:16
VLCB_CAN_PRIO_LOW
@ VLCB_CAN_PRIO_LOW
Definition
common/inc/vlcb/common/can.h:20
VLCB_CAN_PRIO_HIGH
@ VLCB_CAN_PRIO_HIGH
Definition
common/inc/vlcb/common/can.h:17
VLCB_CAN_PRIO_ABOVE
@ VLCB_CAN_PRIO_ABOVE
Definition
common/inc/vlcb/common/can.h:18
VLCB_CAN_PRIO_LOWEST
@ VLCB_CAN_PRIO_LOWEST
Definition
common/inc/vlcb/common/can.h:21
common
src
can
can_is_prio_valid.c
Generated on Mon Nov 4 2024 09:13:33 for VLCB SDK by
1.12.0