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
▼
phoenix6
▼
networking
►
interfaces
►
NetworkAPI.hpp
►
Utils.h
►
platform
►
unmanaged
cci_includes.h
►
ctre
►
ctre
►
ctre
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
NetworkAPI.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 "
ctre/phoenix/StatusCodes.h
"
10
#include "
ctre/phoenix/export.h
"
11
#include "
ctre/phoenix/platform/canframe.hpp
"
12
#include <set>
13
#include <sstream>
14
#include <stdint.h>
15
16
namespace
ctre
17
{
18
namespace
phoenix
19
{
20
namespace
platform
21
{
22
namespace
can
23
{
24
25
CTREXPORT
StatusCode
Network_GetLastTx
(std::string
const
&canbus, uint32_t arbId,
canframe_t
&frame);
26
CTREXPORT
bool
Network_ChangeTxPeriod
(std::string
const
&canbus, uint32_t arbId, int32_t periodMs);
27
28
CTREXPORT
StatusCode
Network_SendTxFrame
(std::string
const
&canbus,
canframe_t
const
&frame);
29
CTREXPORT
StatusCode
Network_SendPeriodicTxFrame
(std::string
const
&canbus,
canframe_t
const
&frame, int32_t periodMs);
30
CTREXPORT
StatusCode
Network_UpdatePeriodicTxFrame
(std::string
const
&canbus,
canframe_t
const
&frame);
31
CTREXPORT
StatusCode
Network_StopPeriodicTxFrame
(std::string
const
&canbus, uint32_t arbId);
32
33
CTREXPORT
StatusCode
Network_GetRxFrame
(
char
const
*canbus, uint32_t arbId,
canframe_t
&frame, uint32_t timeoutMs);
34
CTREXPORT
StatusCode
Network_WaitForRxFrames
(
char
const
*canbus, std::set<uint32_t>
const
&arbIds, uint16_t timeoutMs);
35
36
CTREXPORT
StatusCode
Network_SetEnableSignalSchedPriority
(
int
priority,
bool
useRoundRobin);
37
38
}
// namespace can
39
}
// namespace platform
40
}
// namespace phoenix
41
}
// namespace ctre
StatusCodes.h
canframe.hpp
ctre::phoenix::StatusCode
Status codes reported by APIs, including OK, warnings, and errors.
Definition
StatusCodes.h:27
export.h
CTREXPORT
#define CTREXPORT
Definition
export.h:14
ctre::phoenix::platform::can::Network_GetLastTx
CTREXPORT StatusCode Network_GetLastTx(std::string const &canbus, uint32_t arbId, canframe_t &frame)
ctre::phoenix::platform::can::Network_SendPeriodicTxFrame
CTREXPORT StatusCode Network_SendPeriodicTxFrame(std::string const &canbus, canframe_t const &frame, int32_t periodMs)
ctre::phoenix::platform::can::Network_UpdatePeriodicTxFrame
CTREXPORT StatusCode Network_UpdatePeriodicTxFrame(std::string const &canbus, canframe_t const &frame)
ctre::phoenix::platform::can::Network_GetRxFrame
CTREXPORT StatusCode Network_GetRxFrame(char const *canbus, uint32_t arbId, canframe_t &frame, uint32_t timeoutMs)
ctre::phoenix::platform::can::Network_ChangeTxPeriod
CTREXPORT bool Network_ChangeTxPeriod(std::string const &canbus, uint32_t arbId, int32_t periodMs)
ctre::phoenix::platform::can::Network_SendTxFrame
CTREXPORT StatusCode Network_SendTxFrame(std::string const &canbus, canframe_t const &frame)
ctre::phoenix::platform::can::Network_StopPeriodicTxFrame
CTREXPORT StatusCode Network_StopPeriodicTxFrame(std::string const &canbus, uint32_t arbId)
ctre::phoenix::platform::can::Network_WaitForRxFrames
CTREXPORT StatusCode Network_WaitForRxFrames(char const *canbus, std::set< uint32_t > const &arbIds, uint16_t timeoutMs)
ctre::phoenix::platform::can::Network_SetEnableSignalSchedPriority
CTREXPORT StatusCode Network_SetEnableSignalSchedPriority(int priority, bool useRoundRobin)
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
phoenix6
networking
NetworkAPI.hpp
Generated by
1.12.0