WPILibC++  2019.1.1-beta-2-39-gff58c51
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
AnalogGyroData.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2017-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 #ifndef __FRC_ROBORIO__
11 
12 #include "NotifyListener.h"
13 #include "hal/Types.h"
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 void HALSIM_ResetAnalogGyroData(int32_t index);
20 int32_t HALSIM_RegisterAnalogGyroAngleCallback(int32_t index,
21  HAL_NotifyCallback callback,
22  void* param,
23  HAL_Bool initialNotify);
24 void HALSIM_CancelAnalogGyroAngleCallback(int32_t index, int32_t uid);
25 double HALSIM_GetAnalogGyroAngle(int32_t index);
26 void HALSIM_SetAnalogGyroAngle(int32_t index, double angle);
27 
28 int32_t HALSIM_RegisterAnalogGyroRateCallback(int32_t index,
29  HAL_NotifyCallback callback,
30  void* param,
31  HAL_Bool initialNotify);
32 void HALSIM_CancelAnalogGyroRateCallback(int32_t index, int32_t uid);
33 double HALSIM_GetAnalogGyroRate(int32_t index);
34 void HALSIM_SetAnalogGyroRate(int32_t index, double rate);
35 
36 int32_t HALSIM_RegisterAnalogGyroInitializedCallback(
37  int32_t index, HAL_NotifyCallback callback, void* param,
38  HAL_Bool initialNotify);
39 void HALSIM_CancelAnalogGyroInitializedCallback(int32_t index, int32_t uid);
40 HAL_Bool HALSIM_GetAnalogGyroInitialized(int32_t index);
41 void HALSIM_SetAnalogGyroInitialized(int32_t index, HAL_Bool initialized);
42 
43 void HALSIM_RegisterAnalogGyroAllCallbacks(int32_t index,
44  HAL_NotifyCallback callback,
45  void* param, HAL_Bool initialNotify);
46 
47 #ifdef __cplusplus
48 } // extern "C"
49 #endif
50 
51 #endif