Ejemplo n.º 1
0
 /// <summary> Prepares the given SPI ports for use. Should only be called from BeagleBOne.Initialize(). </summary>
 static internal void Initialize(bool Enable0, bool Enable1)
 {
     if (Enable0)
     {
         SPIBus0 = new SPIBusBBB(0);
     }
     if (Enable1)
     {
         SPIBus1 = new SPIBusBBB(1);
     }
 }
Ejemplo n.º 2
0
 /// <summary> Prepares the given SPI ports for use. Should only be called from BeagleBOne.Initialize(). </summary>
 static internal void Initialize(bool[] EnableBuses)
 {
     if (EnableBuses == null || EnableBuses.Length != 2)
     {
         throw new Exception("Invalid enable array given to SPIBBB.Initialize.");
     }
     if (EnableBuses[0])
     {
         SPIBus0 = new SPIBusBBB(0);
     }
     if (EnableBuses[1])
     {
         SPIBus1 = new SPIBusBBB(1);
     }
 }