Brian Silverman | f7f267a | 2017-02-04 16:16:08 -0800 | [diff] [blame^] | 1 | /*----------------------------------------------------------------------------*/ |
| 2 | /* Copyright (c) FIRST 2016-2017. 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 | |
| 18 | HAL_CompressorHandle HAL_InitializeCompressor(int32_t module, int32_t* status); |
| 19 | HAL_Bool HAL_CheckCompressorModule(int32_t module); |
| 20 | |
| 21 | HAL_Bool HAL_GetCompressor(HAL_CompressorHandle compressorHandle, |
| 22 | int32_t* status); |
| 23 | |
| 24 | void HAL_SetCompressorClosedLoopControl(HAL_CompressorHandle compressorHandle, |
| 25 | HAL_Bool value, int32_t* status); |
| 26 | HAL_Bool HAL_GetCompressorClosedLoopControl( |
| 27 | HAL_CompressorHandle compressorHandle, int32_t* status); |
| 28 | |
| 29 | HAL_Bool HAL_GetCompressorPressureSwitch(HAL_CompressorHandle compressorHandle, |
| 30 | int32_t* status); |
| 31 | double HAL_GetCompressorCurrent(HAL_CompressorHandle compressorHandle, |
| 32 | int32_t* status); |
| 33 | |
| 34 | HAL_Bool HAL_GetCompressorCurrentTooHighFault( |
| 35 | HAL_CompressorHandle compressorHandle, int32_t* status); |
| 36 | HAL_Bool HAL_GetCompressorCurrentTooHighStickyFault( |
| 37 | HAL_CompressorHandle compressorHandle, int32_t* status); |
| 38 | HAL_Bool HAL_GetCompressorShortedStickyFault( |
| 39 | HAL_CompressorHandle compressorHandle, int32_t* status); |
| 40 | HAL_Bool HAL_GetCompressorShortedFault(HAL_CompressorHandle compressorHandle, |
| 41 | int32_t* status); |
| 42 | HAL_Bool HAL_GetCompressorNotConnectedStickyFault( |
| 43 | HAL_CompressorHandle compressorHandle, int32_t* status); |
| 44 | HAL_Bool HAL_GetCompressorNotConnectedFault( |
| 45 | HAL_CompressorHandle compressorHandle, int32_t* status); |
| 46 | #ifdef __cplusplus |
| 47 | } |
| 48 | #endif |