![]() |
WPILibC++ 2027.0.0-alpha-4
|
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. | |
| enum HAL_AlertLevel : int32_t |
Represents an alert's level of urgency.
| HAL_AlertHandle HAL_CreateAlert | ( | const struct WPI_String * | group, |
| const struct WPI_String * | text, | ||
| int32_t | level, | ||
| int32_t * | status ) |
Creates an alert.
| group | Group identifier | |
| text | Text to be displayed when the alert is active | |
| level | Alert urgency level (HAL_AlertLevel) | |
| [out] | status | Error status variable. 0 on success. |
| void HAL_DestroyAlert | ( | HAL_AlertHandle | alertHandle | ) |
Destroys an alert.
| alertHandle | the alert handle |
| void HAL_GetAlertText | ( | HAL_AlertHandle | alertHandle, |
| struct WPI_String * | text, | ||
| int32_t * | status ) |
Gets the text of an alert.
| alertHandle | the alert handle | |
| text | pointer to a WPI_String to be filled with the current text | |
| [out] | status | Error status variable. 0 on success. |
| HAL_Bool HAL_IsAlertActive | ( | HAL_AlertHandle | alertHandle, |
| int32_t * | status ) |
Checks if an alert is active.
| alertHandle | the alert handle | |
| [out] | status | Error status variable. 0 on success. |
| void HAL_SetAlertActive | ( | HAL_AlertHandle | alertHandle, |
| HAL_Bool | active, | ||
| int32_t * | status ) |
Sets whether the alert should be displayed.
This method can be safely be called periodically.
| alertHandle | the alert handle | |
| active | true to display the alert, false to hide it | |
| [out] | status | Error status variable. 0 on success. |
| void HAL_SetAlertText | ( | HAL_AlertHandle | alertHandle, |
| const struct WPI_String * | text, | ||
| int32_t * | status ) |
Updates the text of an alert.
Use this method to dynamically change the displayed alert, such as including more details about the detected problem.
| alertHandle | the alert handle | |
| text | new text to be displayed when the alert is active | |
| [out] | status | Error status variable. 0 on success. |