WPILibC++ 2025.2.1
Loading...
Searching...
No Matches
LEDs.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#include "hal/Types.h"
7
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18/**
19 * Set the state of the "Radio" LED.
20 * @param state The state to set the LED to.
21 * @param[out] status the error code, or 0 for success
22 */
23void HAL_SetRadioLEDState(HAL_RadioLEDState state, int32_t* status);
24
25/**
26 * Get the state of the "Radio" LED.
27 *
28 * @param[out] status the error code, or 0 for success
29 * @return The state of the LED.
30 */
32#ifdef __cplusplus
33} // extern "C"
34#endif
HAL_RadioLEDState
Definition LEDs.h:8
@ HAL_RadioLED_kOff
Definition LEDs.h:9
@ HAL_RadioLED_kGreen
Definition LEDs.h:10
@ HAL_RadioLED_kOrange
Definition LEDs.h:12
@ HAL_RadioLED_kRed
Definition LEDs.h:11
HAL_RadioLEDState HAL_GetRadioLEDState(int32_t *status)
Get the state of the "Radio" LED.
void HAL_SetRadioLEDState(HAL_RadioLEDState state, int32_t *status)
Set the state of the "Radio" LED.
#define HAL_ENUM(name)
Definition Types.h:76