WPILibC++  2019.2.1-27-gd55ca19
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
CANAPITypes.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2018 FIRST. All Rights Reserved. */
3 /* Open Source Software - may be modified and shared by FRC teams. The code */
4 /* must be accompanied by the FIRST BSD license file in the root directory of */
5 /* the project. */
6 /*----------------------------------------------------------------------------*/
7 
8 #pragma once
9 
10 #include <stdint.h>
11 
12 #include "hal/Types.h"
13 
20 // clang-format off
26 HAL_ENUM(HAL_CANDeviceType) {
27  HAL_CAN_Dev_kBroadcast = 0,
28  HAL_CAN_Dev_kRobotController = 1,
29  HAL_CAN_Dev_kMotorController = 2,
30  HAL_CAN_Dev_kRelayController = 3,
31  HAL_CAN_Dev_kGyroSensor = 4,
32  HAL_CAN_Dev_kAccelerometer = 5,
33  HAL_CAN_Dev_kUltrasonicSensor = 6,
34  HAL_CAN_Dev_kGearToothSensor = 7,
35  HAL_CAN_Dev_kPowerDistribution = 8,
36  HAL_CAN_Dev_kPneumatics = 9,
37  HAL_CAN_Dev_kMiscellaneous = 10,
38  HAL_CAN_Dev_kFirmwareUpdate = 31
39 };
40 
46 HAL_ENUM(HAL_CANManufacturer) {
47  HAL_CAN_Man_kBroadcast = 0,
48  HAL_CAN_Man_kNI = 1,
49  HAL_CAN_Man_kLM = 2,
50  HAL_CAN_Man_kDEKA = 3,
51  HAL_CAN_Man_kCTRE = 4,
52  HAL_CAN_Man_kMS = 7,
53  HAL_CAN_Man_kTeamUse = 8,
54 };
55 // clang-format on
HAL_ENUM(HAL_CANDeviceType)
The CAN device type.
Definition: CANAPITypes.h:26