Esempio n. 1
0
 /// <summary>
 /// Sets the specified data on the specified zif.
 /// </summary>
 /// <param name="zif">The zif socket to write to.</param>
 /// <param name="data">The data.</param>
 public void SetData(ZIFSocket zif, byte[] data)
 {
     zif.SetPins(data, DataPins, GetPinTranslator(zif.Size).ToZIF);
 }
Esempio n. 2
0
 /// <summary>
 /// Gets the data from the provided zif socket and returns it as a sequence of bytes.
 /// </summary>
 /// <param name="zif">The zif socket containing the data.</param>
 /// <returns>The data as a sequence of bytes.</returns>
 public IEnumerable <byte> GetData(ZIFSocket zif)
 {
     return(zif.GetDataAsBytes(DataPins, GetPinTranslator(zif.Size).ToZIF));
 }
Esempio n. 3
0
 /// <summary>
 /// Sets the specified address on the specified zif socket.
 /// </summary>
 /// <param name="zif">The zif socket to write to.</param>
 /// <param name="address">The address.</param>
 public void SetAddress(ZIFSocket zif, int address)
 {
     zif.SetPins(address, AddressPins, GetPinTranslator(zif.Size).ToZIF);
 }
Esempio n. 4
0
 /// <summary>
 /// Extracts the address from the provided zif socket and returns it as an Int32.
 /// </summary>
 /// <param name="zif">The zif socket containing the address.</param>
 /// <returns>The address as an Int32.</returns>
 public int GetAddress(ZIFSocket zif)
 {
     return(zif.GetDataAsInt(AddressPins, GetPinTranslator(zif.Size).ToZIF));
 }