Loading [MathJax]/extensions/tex2jax.js
CTRE Phoenix 6 C++
25.4.0
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
c
d
e
f
g
i
k
l
m
n
p
r
s
t
u
v
Functions
a
c
e
f
g
i
l
m
n
r
s
t
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
c
d
e
i
m
o
p
r
s
t
v
w
Enumerations
Related Symbols
h
o
s
Files
File List
File Members
All
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
y
“
Functions
a
c
f
i
l
o
t
Variables
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
y
“
Typedefs
Enumerations
Enumerator
Macros
▼
CTRE Phoenix 6 C++
Deprecated List
►
Namespaces
►
Classes
▼
Files
▼
File List
►
ctre
►
ctre
►
ctre
►
ctre
►
ctre
►
ctre
►
ctre
►
ctre
►
ctre
▼
ctre
▼
phoenix
▼
platform
►
canframe.hpp
►
FrcUsageReport.hpp
►
Platform.hpp
►
ctre
►
ctre
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
canframe.hpp
Go to the documentation of this file.
1
/*
2
* Copyright (C) Cross The Road Electronics. All rights reserved.
3
* License information can be found in CTRE_LICENSE.txt
4
* For support and suggestions contact support@ctr-electronics.com or file
5
* an issue tracker at https://github.com/CrossTheRoadElec/Phoenix-Releases
6
*/
7
#pragma once
8
9
#include <stdint.h>
10
11
namespace
ctre
{
12
namespace
phoenix {
13
namespace
platform {
14
namespace
can {
15
16
/**
17
* "plain old data" container for holding a CAN Frame Event.
18
* Assignment of this type resolves to a copy-by-value.
19
*/
20
struct
canframe_t
{
21
uint32_t
arbID
;
//!< ArbID of the CAN frame.
22
uint64_t
hwTimestampUs
;
//!< Hardware timestamp if receive event. Zero otherwise.
23
uint64_t
swTimestampUs
;
//!< Software timestamp if receive event. Zero otherwise.
24
uint8_t data[64];
//!< Data bytes
25
uint32_t
flags
;
//!< CAN flags, such as FD and BRS
26
uint8_t
len
;
//!< Number of bytes in payload
27
};
20
struct
canframe_t
{
…
};
28
29
}
//namespace can
14
namespace
can {
…
}
30
}
//namespace platform
31
}
//namespace phoenix
32
}
//namespace ctre
ctre
Definition
Diff_PositionDutyCycle_Position.hpp:15
ctre::phoenix::platform::can::canframe_t
"plain old data" container for holding a CAN Frame Event.
Definition
canframe.hpp:20
ctre::phoenix::platform::can::canframe_t::hwTimestampUs
uint64_t hwTimestampUs
Hardware timestamp if receive event. Zero otherwise.
Definition
canframe.hpp:22
ctre::phoenix::platform::can::canframe_t::arbID
uint32_t arbID
ArbID of the CAN frame.
Definition
canframe.hpp:21
ctre::phoenix::platform::can::canframe_t::swTimestampUs
uint64_t swTimestampUs
Software timestamp if receive event. Zero otherwise.
Definition
canframe.hpp:23
ctre::phoenix::platform::can::canframe_t::len
uint8_t len
Number of bytes in payload.
Definition
canframe.hpp:26
ctre::phoenix::platform::can::canframe_t::flags
uint32_t flags
CAN flags, such as FD and BRS.
Definition
canframe.hpp:25
ctre
phoenix
platform
canframe.hpp
Generated by
1.12.0