WPILibC++  2018.4.1-20180819221726-1160-g6df500e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Notifier.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2016-2018 FIRST. All Rights Reserved. */
3 /* Open Source Software - may be modified and shared by FRC teams. The code */
4 /* must be accompanied by the FIRST BSD license file in the root directory of */
5 /* the project. */
6 /*----------------------------------------------------------------------------*/
7 
8 #pragma once
9 
10 #include <stdint.h>
11 
12 #include "hal/Types.h"
13 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
32 HAL_NotifierHandle HAL_InitializeNotifier(int32_t* status);
33 
41 void HAL_StopNotifier(HAL_NotifierHandle notifierHandle, int32_t* status);
42 
50 void HAL_CleanNotifier(HAL_NotifierHandle notifierHandle, int32_t* status);
51 
60 void HAL_UpdateNotifierAlarm(HAL_NotifierHandle notifierHandle,
61  uint64_t triggerTime, int32_t* status);
62 
70 void HAL_CancelNotifierAlarm(HAL_NotifierHandle notifierHandle,
71  int32_t* status);
72 
82 uint64_t HAL_WaitForNotifierAlarm(HAL_NotifierHandle notifierHandle,
83  int32_t* status);
84 
85 #ifdef __cplusplus
86 } // extern "C"
87 #endif
88 
HAL_NotifierHandle HAL_InitializeNotifier(int32_t *status)
Initializes a notifier.
void HAL_StopNotifier(HAL_NotifierHandle notifierHandle, int32_t *status)
Stops a notifier from running.
void HAL_CancelNotifierAlarm(HAL_NotifierHandle notifierHandle, int32_t *status)
Cancels the next notifier alarm.
uint64_t HAL_WaitForNotifierAlarm(HAL_NotifierHandle notifierHandle, int32_t *status)
Waits for the next alarm for the specific notifier.
void HAL_CleanNotifier(HAL_NotifierHandle notifierHandle, int32_t *status)
Cleans a notifier.
void HAL_UpdateNotifierAlarm(HAL_NotifierHandle notifierHandle, uint64_t triggerTime, int32_t *status)
Updates the trigger time for a notifier.