CTRE Phoenix 6 C++
25.0.0-beta-4
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
StatusCodes.h:18
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.10.0