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 */
3
4namespace ctre {
5namespace phoenix {
6/** platform namespace */
7namespace platform {
8/** platform-can namespace */
9namespace can {
10
11/**
12 * Configures the can interface for API
13 */
15public:
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 */
38};
39
40}
41}
42}
43}
Configures the can interface for API.
Definition PlatformCAN.h:14
static int32_t DestroyAll()
Destroys all items in interface.
static void SetAutocacheLevel(ctre::phoenix::AutocacheState state)
Set Autocache state.
static int32_t RegisterCANbus(char const *canbus)
Registers a non-compliant CANbus.
static int32_t StartAll()
Starts all items in interface.
AutocacheState
Keeps track of cache state.
Definition autocache.h:9
WPI Compliant Pigeon class.
Definition PigeonIMU_StickyFaults.h:6