RaspberryIO_26/Unosquare.RaspberryIO.Abstractions/ISpiBus.cs

59 lines
1.1 KiB
C#
Raw Normal View History

2019-12-06 22:24:34 +01:00
using System;
namespace Unosquare.RaspberryIO.Abstractions {
/// <summary>
/// Interfaces a SPI Bus containing the 2 SPI channels.
/// </summary>
public interface ISpiBus {
2019-12-04 18:57:18 +01:00
/// <summary>
2019-12-06 22:24:34 +01:00
/// Gets the default frequency.
2019-12-04 18:57:18 +01:00
/// </summary>
2019-12-06 22:24:34 +01:00
/// <value>
/// The default frequency.
/// </value>
Int32 DefaultFrequency {
get;
}
/// <summary>
/// Gets or sets the channel 0 frequency in Hz.
/// </summary>
/// <value>
/// The channel0 frequency.
/// </value>
Int32 Channel0Frequency {
get; set;
}
/// <summary>
/// Gets or sets the channel 1 frequency in Hz.
/// </summary>
/// <value>
/// The channel1 frequency.
/// </value>
Int32 Channel1Frequency {
get; set;
}
/// <summary>
/// Gets the SPI bus on channel 0.
/// </summary>
/// <value>
/// The channel0.
/// </value>
ISpiChannel Channel0 {
get;
}
/// <summary>
/// Gets the SPI bus on channel 1.
/// </summary>
/// <value>
/// The channel0.
/// </value>
ISpiChannel Channel1 {
get;
}
}
2019-12-04 18:57:18 +01:00
}