blob: 39c5130459ae4d55480b917bab63c04f26add6eb [file] [log] [blame]
/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008-2017. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
/*----------------------------------------------------------------------------*/
#pragma once
#include <cstdint>
#include "frc971/wpilib/ahal/ErrorBase.h"
#include "hal/PowerDistribution.h"
namespace frc {
inline int GetDefaultSolenoidModule() { return 0; }
bool CheckDigitalChannel(int channel);
bool CheckRelayChannel(int channel);
bool CheckPWMChannel(int channel);
bool CheckAnalogInputChannel(int channel);
bool CheckAnalogOutputChannel(int channel);
bool CheckPDPChannel(int channel, HAL_PowerDistributionType type);
extern const int kDigitalChannels;
extern const int kAnalogInputs;
extern const int kAnalogOutputs;
extern const int kSolenoidChannels;
extern const int kSolenoidModules;
extern const int kPwmChannels;
extern const int kRelayChannels;
extern const int kPDPChannels;
} // namespace frc