Parker Schuh | d3b7a887 | 2018-02-19 16:42:27 -0800 | [diff] [blame] | 1 | /*----------------------------------------------------------------------------*/ |
| 2 | /* Copyright (c) FIRST 2008-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 | |
Tyler Chatow | bf0609c | 2021-07-31 16:13:27 -0700 | [diff] [blame^] | 10 | #include <cstdint> |
Parker Schuh | d3b7a887 | 2018-02-19 16:42:27 -0800 | [diff] [blame] | 11 | |
| 12 | #include "frc971/wpilib/ahal/ErrorBase.h" |
| 13 | |
| 14 | namespace frc { |
| 15 | |
| 16 | inline int GetDefaultSolenoidModule() { return 0; } |
| 17 | |
| 18 | bool CheckSolenoidModule(int moduleNumber); |
| 19 | bool CheckDigitalChannel(int channel); |
| 20 | bool CheckRelayChannel(int channel); |
| 21 | bool CheckPWMChannel(int channel); |
| 22 | bool CheckAnalogInputChannel(int channel); |
| 23 | bool CheckAnalogOutputChannel(int channel); |
| 24 | bool CheckSolenoidChannel(int channel); |
| 25 | bool CheckPDPChannel(int channel); |
| 26 | |
| 27 | extern const int kDigitalChannels; |
| 28 | extern const int kAnalogInputs; |
| 29 | extern const int kAnalogOutputs; |
| 30 | extern const int kSolenoidChannels; |
| 31 | extern const int kSolenoidModules; |
| 32 | extern const int kPwmChannels; |
| 33 | extern const int kRelayChannels; |
| 34 | extern const int kPDPChannels; |
| 35 | |
| 36 | } // namespace frc |