CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/libraries/AP_CANManager/AP_CAN.h
Views: 1798
1
#pragma once
2
3
/*
4
* this header contains data common to ArduPilot CAN, rather than to a
5
* specific implementation of the protocols. So we try to share
6
* enumeration values where possible to make parameters similar across
7
* Periph and main firmwares, for example.
8
*
9
* this is *not* to be a one-stop-shop for including all things CAN...
10
*/
11
12
#include <stdint.h>
13
14
class AP_CAN {
15
public:
16
enum class Protocol : uint8_t {
17
None = 0,
18
DroneCAN = 1,
19
// 2 was KDECAN -- do not re-use
20
// 3 was ToshibaCAN -- do not re-use
21
PiccoloCAN = 4,
22
// 5 was CANTester
23
EFI_NWPMU = 6,
24
USD1 = 7,
25
KDECAN = 8,
26
// 9 was MPPT_PacketDigital
27
Scripting = 10,
28
Benewake = 11,
29
Scripting2 = 12,
30
TOFSenseP = 13,
31
NanoRadar = 14,
32
};
33
};
34
35