![]() |
WPILibC++ 2027.0.0-alpha-5
|
#include <stdint.h>#include <concepts>#include <string_view>#include "wpi/hal/Types.h"#include "wpi/util/Synchronization.hpp"Go to the source code of this file.
Classes | |
| class | wpi::hal::HandleBase |
| Base for all HAL Handles. More... | |
Namespaces | |
| namespace | wpi |
| namespace | wpi::hal |
| WPILib Hardware Abstraction Layer (HAL) namespace. | |
| namespace | wpi::hal::detail |
Concepts | |
| concept | wpi::hal::detail::HasPreviousAllocation |
Enumerations | |
| enum class | wpi::hal::HAL_HandleEnum { wpi::hal::UNDEFINED = 0 , wpi::hal::DIO = wpi::util::HANDLE_TYPE_HAL_BASE , wpi::hal::PORT = 2 , wpi::hal::NOTIFIER = 3 , wpi::hal::ANALOG_INPUT = 4 , wpi::hal::PWM = 5 , wpi::hal::DIGITAL_PWM = 6 , wpi::hal::COUNTER = 7 , wpi::hal::FPGA_ENCODER = 8 , wpi::hal::ENCODER = 9 , wpi::hal::COMPRESSOR = 10 , wpi::hal::SOLENOID = 11 , wpi::hal::VENDOR = 12 , wpi::hal::SIMULATION_JNI = 13 , wpi::hal::CAN = 14 , wpi::hal::SERIAL_PORT = 15 , wpi::hal::DUTY_CYCLE = 16 , wpi::hal::ADDRESSABLE_LED = 17 , wpi::hal::CTRE_PCM = 18 , wpi::hal::CTRE_PDP = 19 , wpi::hal::REV_PDH = 20 , wpi::hal::REV_PH = 21 , wpi::hal::CAN_STREAM = 22 , wpi::hal::ALERT = 23 } |
| Enum of HAL handle types. More... | |
Functions | |
| static int16_t | wpi::hal::getHandleIndex (HAL_Handle handle) |
| Get the handle index from a handle. | |
| static HAL_HandleEnum | wpi::hal::getHandleType (HAL_Handle handle) |
| Get the handle type from a handle. | |
| static bool | wpi::hal::isHandleType (HAL_Handle handle, HAL_HandleEnum handleType) |
| Get if the handle is a specific type. | |
| static bool | wpi::hal::isHandleCorrectVersion (HAL_Handle handle, int16_t version) |
| Get if the version of the handle is correct. | |
| int16_t | wpi::hal::getHandleTypedIndex (HAL_Handle handle, HAL_HandleEnum enumType, int16_t version) |
| Get if the handle is a correct type and version. | |
| HAL_Handle | wpi::hal::createHandle (int16_t index, HAL_HandleEnum handleType, int16_t version) |
| Create a handle for a specific index, type and version. | |
Variables | |
| constexpr int16_t | wpi::hal::INVALID_HANDLE_INDEX = -1 |