WPILibC++  2020.3.2
AnalogOutData.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2017-2019 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 "NotifyListener.h"
11 #include "hal/Types.h"
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 void HALSIM_ResetAnalogOutData(int32_t index);
18 int32_t HALSIM_RegisterAnalogOutVoltageCallback(int32_t index,
19  HAL_NotifyCallback callback,
20  void* param,
21  HAL_Bool initialNotify);
22 void HALSIM_CancelAnalogOutVoltageCallback(int32_t index, int32_t uid);
23 double HALSIM_GetAnalogOutVoltage(int32_t index);
24 void HALSIM_SetAnalogOutVoltage(int32_t index, double voltage);
25 
26 int32_t HALSIM_RegisterAnalogOutInitializedCallback(int32_t index,
27  HAL_NotifyCallback callback,
28  void* param,
29  HAL_Bool initialNotify);
30 void HALSIM_CancelAnalogOutInitializedCallback(int32_t index, int32_t uid);
31 HAL_Bool HALSIM_GetAnalogOutInitialized(int32_t index);
32 void HALSIM_SetAnalogOutInitialized(int32_t index, HAL_Bool initialized);
33 
34 void HALSIM_RegisterAnalogOutAllCallbacks(int32_t index,
35  HAL_NotifyCallback callback,
36  void* param, HAL_Bool initialNotify);
37 
38 #ifdef __cplusplus
39 } // extern "C"
40 #endif