CTRE Phoenix C++
5.36.0-beta-1
Loading...
Searching...
No Matches
PlatformCAN.h
Go to the documentation of this file.
1
/* Copyright (C) Cross The Road Electronics 2024 */
2
#include "
ctre/phoenix/cci/PlatformCAN_CCI.h
"
3
4
namespace
ctre
{
5
namespace
phoenix {
6
/** platform namespace */
7
namespace
platform {
8
/** platform-can namespace */
9
namespace
can {
10
11
/**
12
* Configures the can interface for API
13
*/
14
class
PlatformCAN
{
15
public
:
16
/**
17
* Registers a non-compliant CANbus
18
* @param canbus CANbus to register. Linux example: "can0".
19
* @return ErrorCode generated by function
20
*/
21
static
int32_t
RegisterCANbus
(
char
const
*canbus);
22
23
/**
24
* Starts all items in interface
25
*/
26
static
int32_t
StartAll
();
27
28
/**
29
* Destroys all items in interface
30
*/
31
static
int32_t
DestroyAll
();
32
33
/**
34
* Set Autocache state
35
* @param state state of autocache
36
*/
37
static
void
SetAutocacheLevel
(
ctre::phoenix::AutocacheState
state);
38
};
39
40
}
41
}
42
}
43
}
PlatformCAN_CCI.h
ctre::phoenix::platform::can::PlatformCAN
Configures the can interface for API.
Definition
PlatformCAN.h:14
ctre::phoenix::platform::can::PlatformCAN::DestroyAll
static int32_t DestroyAll()
Destroys all items in interface.
ctre::phoenix::platform::can::PlatformCAN::SetAutocacheLevel
static void SetAutocacheLevel(ctre::phoenix::AutocacheState state)
Set Autocache state.
ctre::phoenix::platform::can::PlatformCAN::RegisterCANbus
static int32_t RegisterCANbus(char const *canbus)
Registers a non-compliant CANbus.
ctre::phoenix::platform::can::PlatformCAN::StartAll
static int32_t StartAll()
Starts all items in interface.
ctre::phoenix::AutocacheState
AutocacheState
Keeps track of cache state.
Definition
autocache.h:9
ctre
WPI Compliant Pigeon class.
Definition
PigeonIMU_StickyFaults.h:6
ctre
phoenix
platform
can
PlatformCAN.h
Generated by
1.12.0