Example #1
0
        public static BoardMetaDigest FromHardware(WiseBoard board)
        {
            BoardMetaDigest ret = new BoardMetaDigest()
            {
                Number = board.boardNum,
                Type   = board.type,
                Name   = board.WiseName,
                Daqs   = new List <DaqMetaDigest>(),
            };

            foreach (WiseDaq daq in board.daqs)
            {
                ret.Daqs.Add(DaqMetaDigest.FromHardware(daq));
            }

            return(ret);
        }
Example #2
0
        public static DaqMetaDigest FromHardware(WiseDaq daq)
        {
            DaqMetaDigest ret = new DaqMetaDigest()
            {
                Porttype = daq.porttype,
                Portdir  = daq.portdir,
                Nbits    = daq.nbits,
                Owners   = new List <string>(),
            };

            foreach (WiseBitOwner owner in daq.owners)
            {
                ret.Owners.Add(owner.owner);
            }

            return(ret);
        }