blob: a4de9cc841dd57659368cbcd45135d8b0ff00eb3 [file] [log] [blame]
Parker Schuhd3b7a8872018-02-19 16:42:27 -08001/*----------------------------------------------------------------------------*/
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 Chatowbf0609c2021-07-31 16:13:27 -070010#include <cstdint>
Parker Schuhd3b7a8872018-02-19 16:42:27 -080011
12#include "frc971/wpilib/ahal/ErrorBase.h"
13
14namespace frc {
15
16inline int GetDefaultSolenoidModule() { return 0; }
17
18bool CheckSolenoidModule(int moduleNumber);
19bool CheckDigitalChannel(int channel);
20bool CheckRelayChannel(int channel);
21bool CheckPWMChannel(int channel);
22bool CheckAnalogInputChannel(int channel);
23bool CheckAnalogOutputChannel(int channel);
24bool CheckSolenoidChannel(int channel);
25bool CheckPDPChannel(int channel);
26
27extern const int kDigitalChannels;
28extern const int kAnalogInputs;
29extern const int kAnalogOutputs;
30extern const int kSolenoidChannels;
31extern const int kSolenoidModules;
32extern const int kPwmChannels;
33extern const int kRelayChannels;
34extern const int kPDPChannels;
35
36} // namespace frc