WPILibC++  2018.4.1-20180728210220-1136-g75a6720
 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 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
26 HAL_NotifierHandle HAL_InitializeNotifier(int32_t* status);
27 
35 void HAL_StopNotifier(HAL_NotifierHandle notifierHandle, int32_t* status);
36 
44 void HAL_CleanNotifier(HAL_NotifierHandle notifierHandle, int32_t* status);
45 
54 void HAL_UpdateNotifierAlarm(HAL_NotifierHandle notifierHandle,
55  uint64_t triggerTime, int32_t* status);
56 
64 void HAL_CancelNotifierAlarm(HAL_NotifierHandle notifierHandle,
65  int32_t* status);
66 
76 uint64_t HAL_WaitForNotifierAlarm(HAL_NotifierHandle notifierHandle,
77  int32_t* status);
78 
79 #ifdef __cplusplus
80 } // extern "C"
81 #endif