Beispiel #1
0
 private static IEnumerable <string> TestPins(IPinTranslator translator, Pin[] pins, List <int> validePins, string pinType)
 {
     return(pins
            .Where(p => !validePins.Contains(translator.ToZIF(p)))
            .Select(p => String.Format(
                        "IC pin #{0}{1} that translates into ZIF pin #{2} is not a valid {3} pin.",
                        p.Number,
                        p.TrueZIF ? "Z" : " ",
                        translator.ToZIF(p),
                        pinType)));
 }
Beispiel #2
0
 /// <summary>
 /// Initializes the adaptor for use.
 /// </summary>
 /// <param name="zifType">The type of socket, the adaptor is inserted in.</param>
 /// <param name="adaptorPlacement">The placement of the adaptor.</param>
 /// <param name="icDilType">The DIL type of the IC.</param>
 /// <param name="icPlacement">The placement of the IC in the adaptor.</param>
 /// <returns>The initialized adaptor.</returns>
 public Adaptor Init(int zifType, int adaptorPlacement, int icDilType, int icPlacement)
 {
     AdaptorTranslator = new PinTranslator(PinType, zifType, adaptorPlacement);
     ICTranslator      = new PinTranslator(icDilType, HoleType, icPlacement);
     return(this);
 }