コード例 #1
0
 /**
  * Constructor with common defaults. Equivalent to Config(rate, false,
  * false)
  *
  * @see SpiMaster.Config#Config(SpiMaster.Config.Rate, boolean, boolean)
  */
 public SpiMasterConfig(SpiMasterRate rate)
     : this(rate, false, false)
 {
 }
コード例 #2
0
 /**
  * Constructor.
  *
  * @param rate
  *            Data rate.
  * @param invertClk
  *            Whether to invert clock polarity.
  * @param sampleOnTrailing
  *            Whether to do the input and output sampling on the
  *            trailing clock edge.
  */
 public SpiMasterConfig(SpiMasterRate rate, bool invertClk, bool sampleOnTrailing)
 {
     this.rate             = rate;
     this.invertClk        = invertClk;
     this.sampleOnTrailing = sampleOnTrailing;
 }