示例#1
0
        public override bool ReadU8(UInt32 Addr, UInt32 Count, ref byte[] data)
        {
            GCHandle addr_hndl = GCHandle.Alloc(data, GCHandleType.Pinned);
            IntPtr   addr_data = addr_hndl.AddrOfPinnedObject();
            bool     status    = (JLinkARM.JLINKARM_ReadMem(Addr, Count, addr_data) >= 0) ? true : false;

            addr_hndl.Free();
            return(status);
        }