WPILibC++
2024.3.2
I2CTypes.h
Go to the documentation of this file.
1
// Copyright (c) FIRST and other WPILib contributors.
2
// Open Source Software; you can modify and/or share it under the terms of
3
// the WPILib BSD license file in the root directory of this project.
4
5
#pragma once
6
7
#include <stdint.h>
8
9
#include "
hal/Types.h
"
10
11
/**
12
* @defgroup hal_i2c I2C Functions
13
* @ingroup hal_capi
14
* @{
15
*/
16
17
HAL_ENUM
(
HAL_I2CPort
) {
18
HAL_I2C_kInvalid
= -1,
19
HAL_I2C_kOnboard
,
20
HAL_I2C_kMXP
21
};
22
23
#ifdef __cplusplus
24
namespace
hal
{
25
26
/**
27
* A move-only C++ wrapper around HAL_I2CPort.
28
* Does not ensure destruction.
29
*/
30
using
I2CPort
=
Handle<HAL_I2CPort, HAL_I2C_kInvalid>
;
31
32
}
// namespace hal
33
#endif
34
/** @} */
Types.h
HAL_ENUM
@ HAL_ENUM
Definition:
Value.h:14
hal::Handle
A move-only C++ wrapper around a HAL handle.
Definition:
Types.h:96
HAL_I2CPort
HAL_I2CPort
Definition:
I2CTypes.h:17
HAL_I2C_kMXP
@ HAL_I2C_kMXP
Definition:
I2CTypes.h:20
HAL_I2C_kInvalid
@ HAL_I2C_kInvalid
Definition:
I2CTypes.h:18
HAL_I2C_kOnboard
@ HAL_I2C_kOnboard
Definition:
I2CTypes.h:19
hal
WPILib Hardware Abstraction Layer (HAL) namespace.
Definition:
ChipObject.h:40
hal
I2CTypes.h
Generated on Wed Mar 13 2024 05:20:40 for WPILibC++ by
1.9.4