//public rfid.Constants.Result load //( // rfid.Linkage transport, // UInt32 readerHandle //) //{ // UInt32[ ] buffer = new UInt32[ OEMCFG_AREA_MAP_SIZE_WORDS ]; // uint length = (uint)buffer.Length; // rfid.Constants.Result Result = transport.MacReadOemData // ( // ( int ) readerHandle, // 0, // ref length, // buffer // ); // if ( rfid.Constants.Result.OK == Result ) // { // buffer.CopyTo( oemDataBuffer, 0 ); // } // return Result; //} //clark 2011.3.23 public rfid.Constants.Result store ( 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 store one ome at one time. Store all ome to buf. for (ushort index = 0; index < OEMCFG_AREA_MAP_SIZE_WORDS; index++) { Result = transport.API_MacWriteOemData(index, oemDataBuffer[index]); if (rfid.Constants.Result.OK != Result) { return(Result); } } return(Result); }