WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
Alert.h File Reference
#include <stdint.h>
#include "wpi/hal/Types.h"
#include "wpi/util/string.h"

Go to the source code of this file.

Enumerations

enum  HAL_AlertLevel : int32_t {
  HAL_ALERT_HIGH = 0 , HAL_ALERT_ERROR = HAL_ALERT_HIGH , HAL_ALERT_MEDIUM = 1 , HAL_ALERT_WARNING = HAL_ALERT_MEDIUM ,
  HAL_ALERT_LOW = 2 , HAL_ALERT_INFO = HAL_ALERT_LOW
}
 Represents an alert's level of urgency. More...

Functions

HAL_AlertHandle HAL_CreateAlert (const struct WPI_String *group, const struct WPI_String *text, int32_t level, int32_t *status)
 Creates an alert.
void HAL_DestroyAlert (HAL_AlertHandle alertHandle)
 Destroys an alert.
void HAL_SetAlertActive (HAL_AlertHandle alertHandle, HAL_Bool active, int32_t *status)
 Sets whether the alert should be displayed.
HAL_Bool HAL_IsAlertActive (HAL_AlertHandle alertHandle, int32_t *status)
 Checks if an alert is active.
void HAL_SetAlertText (HAL_AlertHandle alertHandle, const struct WPI_String *text, int32_t *status)
 Updates the text of an alert.
void HAL_GetAlertText (HAL_AlertHandle alertHandle, struct WPI_String *text, int32_t *status)
 Gets the text of an alert.