WPILibC++  2020.3.2
I2CTypes.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2018-2019 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
21 HAL_ENUM(HAL_I2CPort) { HAL_I2C_kInvalid = -1, HAL_I2C_kOnboard, HAL_I2C_kMXP };
22 // clang-format on
23 
24 #ifdef __cplusplus
25 namespace hal {
26 
31 using I2CPort = Handle<HAL_I2CPort, HAL_I2C_kInvalid>;
32 
33 } // namespace hal
34 #endif
35 
hal
WPILib Hardware Abstraction Layer (HAL) namespace.
Definition: UnsafeDIO.h:15