WPILibC++  2019.2.1-26-ge8b2471
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
AnalogOutData.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_ResetAnalogOutData(int32_t index);
20 int32_t HALSIM_RegisterAnalogOutVoltageCallback(int32_t index,
21  HAL_NotifyCallback callback,
22  void* param,
23  HAL_Bool initialNotify);
24 void HALSIM_CancelAnalogOutVoltageCallback(int32_t index, int32_t uid);
25 double HALSIM_GetAnalogOutVoltage(int32_t index);
26 void HALSIM_SetAnalogOutVoltage(int32_t index, double voltage);
27 
28 int32_t HALSIM_RegisterAnalogOutInitializedCallback(int32_t index,
29  HAL_NotifyCallback callback,
30  void* param,
31  HAL_Bool initialNotify);
32 void HALSIM_CancelAnalogOutInitializedCallback(int32_t index, int32_t uid);
33 HAL_Bool HALSIM_GetAnalogOutInitialized(int32_t index);
34 void HALSIM_SetAnalogOutInitialized(int32_t index, HAL_Bool initialized);
35 
36 void HALSIM_RegisterAnalogOutAllCallbacks(int32_t index,
37  HAL_NotifyCallback callback,
38  void* param, HAL_Bool initialNotify);
39 
40 #ifdef __cplusplus
41 } // extern "C"
42 #endif
43 
44 #endif