WPILibC++
2024.3.2
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
8
HAL_ENUM
(
HAL_RadioLEDState
) {
9
HAL_RadioLED_kOff
= 0,
10
HAL_RadioLED_kGreen
= 1,
11
HAL_RadioLED_kRed
= 2,
12
HAL_RadioLED_kOrange
= 3
13
};
14
15
#ifdef __cplusplus
16
extern
"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
*/
23
void
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
*/
31
HAL_RadioLEDState
HAL_GetRadioLEDState
(int32_t* status);
32
#ifdef __cplusplus
33
}
// extern "C"
34
#endif
HAL_RadioLEDState
HAL_RadioLEDState
Definition:
LEDs.h:8
HAL_RadioLED_kOff
@ HAL_RadioLED_kOff
Definition:
LEDs.h:9
HAL_RadioLED_kGreen
@ HAL_RadioLED_kGreen
Definition:
LEDs.h:10
HAL_RadioLED_kOrange
@ HAL_RadioLED_kOrange
Definition:
LEDs.h:12
HAL_RadioLED_kRed
@ HAL_RadioLED_kRed
Definition:
LEDs.h:11
HAL_GetRadioLEDState
HAL_RadioLEDState HAL_GetRadioLEDState(int32_t *status)
Get the state of the "Radio" LED.
HAL_SetRadioLEDState
void HAL_SetRadioLEDState(HAL_RadioLEDState state, int32_t *status)
Set the state of the "Radio" LED.
Types.h
HAL_ENUM
@ HAL_ENUM
Definition:
Value.h:14
detail::state
state
Definition:
core.h:2271
hal
LEDs.h
Generated on Wed Mar 13 2024 05:20:40 for WPILibC++ by
1.9.4