WPILibC++  2018.4.1-20180729124724-1140-gcbb62fb
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
AnalogOutput.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 
24 HAL_AnalogOutputHandle HAL_InitializeAnalogOutputPort(HAL_PortHandle portHandle,
25  int32_t* status);
26 
32 void HAL_FreeAnalogOutputPort(HAL_AnalogOutputHandle analogOutputHandle);
33 
40 void HAL_SetAnalogOutput(HAL_AnalogOutputHandle analogOutputHandle,
41  double voltage, int32_t* status);
42 
49 double HAL_GetAnalogOutput(HAL_AnalogOutputHandle analogOutputHandle,
50  int32_t* status);
51 
60 HAL_Bool HAL_CheckAnalogOutputChannel(int32_t channel);
61 #ifdef __cplusplus
62 } // extern "C"
63 #endif