WPILibC++  unspecified
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
Relay.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) FIRST 2016. 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_RelayHandle HAL_InitializeRelayPort(HAL_PortHandle portHandle, HAL_Bool fwd,
19  int32_t* status);
20 void HAL_FreeRelayPort(HAL_RelayHandle relayPortHandle);
21 
22 HAL_Bool HAL_CheckRelayChannel(int32_t channel);
23 
24 void HAL_SetRelay(HAL_RelayHandle relayPortHandle, HAL_Bool on,
25  int32_t* status);
26 HAL_Bool HAL_GetRelay(HAL_RelayHandle relayPortHandle, int32_t* status);
27 #ifdef __cplusplus
28 }
29 #endif