示例#1
0
        //clark 2011.3.23
        public rfid.Constants.Result load
        (
            rfid.Linkage transport,
            UInt32 readerHandle
        )
        {
            UInt32[] tmpBuf = new UInt32[OEMCFG_AREA_MAP_SIZE_WORDS];
            rfid.Constants.Result Result = rfid.Constants.Result.OK;

            Array.Clear(tmpBuf, 0, tmpBuf.Length);

            //MacReadOemData only load one ome at one time. load all ome to buf.
            for (ushort index = 0; index < OEMCFG_AREA_MAP_SIZE_WORDS; index++)
            {
                Result = transport.API_MacReadOemData(index,
                                                      ref tmpBuf[index]);

                if (rfid.Constants.Result.OK != Result)
                {
                    return(Result);
                }
            }

            tmpBuf.CopyTo(oemDataBuffer, 0);

            return(Result);
        }