blob: aea721139d483c997404296b94fc44045e392db5 [file] [log] [blame]
Brian Silvermanf7f267a2017-02-04 16:16:08 -08001/*----------------------------------------------------------------------------*/
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
15extern "C" {
16#endif
17
18HAL_CompressorHandle HAL_InitializeCompressor(int32_t module, int32_t* status);
19HAL_Bool HAL_CheckCompressorModule(int32_t module);
20
21HAL_Bool HAL_GetCompressor(HAL_CompressorHandle compressorHandle,
22 int32_t* status);
23
24void HAL_SetCompressorClosedLoopControl(HAL_CompressorHandle compressorHandle,
25 HAL_Bool value, int32_t* status);
26HAL_Bool HAL_GetCompressorClosedLoopControl(
27 HAL_CompressorHandle compressorHandle, int32_t* status);
28
29HAL_Bool HAL_GetCompressorPressureSwitch(HAL_CompressorHandle compressorHandle,
30 int32_t* status);
31double HAL_GetCompressorCurrent(HAL_CompressorHandle compressorHandle,
32 int32_t* status);
33
34HAL_Bool HAL_GetCompressorCurrentTooHighFault(
35 HAL_CompressorHandle compressorHandle, int32_t* status);
36HAL_Bool HAL_GetCompressorCurrentTooHighStickyFault(
37 HAL_CompressorHandle compressorHandle, int32_t* status);
38HAL_Bool HAL_GetCompressorShortedStickyFault(
39 HAL_CompressorHandle compressorHandle, int32_t* status);
40HAL_Bool HAL_GetCompressorShortedFault(HAL_CompressorHandle compressorHandle,
41 int32_t* status);
42HAL_Bool HAL_GetCompressorNotConnectedStickyFault(
43 HAL_CompressorHandle compressorHandle, int32_t* status);
44HAL_Bool HAL_GetCompressorNotConnectedFault(
45 HAL_CompressorHandle compressorHandle, int32_t* status);
46#ifdef __cplusplus
47}
48#endif