namespace Unosquare.RaspberryIO.Abstractions
{
using System.Collections.Generic;
///
/// Interface for Raspberry Pi GPIO controller.
///
///
public interface IGpioController : IReadOnlyCollection
{
///
/// Gets the with the specified BCM pin.
///
///
/// The .
///
/// The BCM pin number.
/// A reference to the GPIO pin.
IGpioPin this[int bcmPinNumber] { get; }
///
/// Gets the with the specified BCM pin.
///
///
/// The .
///
/// The BCM pin.
/// A reference to the GPIO pin.
IGpioPin this[BcmPin bcmPin] { get; }
///
/// Gets the with the specified pin number.
///
///
/// The .
///
/// The pin number in header P1.
/// A reference to the GPIO pin.
IGpioPin this[P1 pinNumber] { get; }
///
/// Gets the with the specified pin number.
///
///
/// The .
///
/// The pin number in header P5.
/// A reference to the GPIO pin.
IGpioPin this[P5 pinNumber] { get; }
}
}