VLCB SDK
An opinionated SDK for VLCB protocol
Loading...
Searching...
No Matches
can_id_new.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_NewCanId
(
const
uint8_t
value
,
VlcbCanId
*
const
id
) {
7
assert(
id
!= NULL);
8
9
const
VlcbCanId
_id =
value
;
10
11
if
(
vlcb_defs_IsCanIdValid
(_id)) {
12
*
id
= _id;
13
return
0;
14
}
15
16
return
1;
17
}
vlcb_defs_NewCanId
int vlcb_defs_NewCanId(const uint8_t value, VlcbCanId *const id)
Definition
can_id_new.c:6
can.h
vlcb_defs_IsCanIdValid
bool vlcb_defs_IsCanIdValid(VlcbCanId id)
Definition
can_id_is_valid.c:5
VlcbCanId
uint8_t VlcbCanId
Definition
common/inc/vlcb/common/can.h:9
value
uint8_t value
Definition
net/inc/vlcb/net/packet/datagram/dcc.h:66
common
src
can
can_id_new.c
Generated on Mon Nov 4 2024 09:13:33 for VLCB SDK by
1.12.0