skyeye-sdk-js 1.4.8 → 1.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -54,8 +54,8 @@ export declare class SkyEyeClient extends JSONTransmissionClient {
|
|
|
54
54
|
getMemoryValue(cpuName: string, baseAddr: string, length: string, addressWidth?: number): Promise<any>;
|
|
55
55
|
getMemoryValueDefault(baseAddr: string, length: string): Promise<any>;
|
|
56
56
|
getAddressingSpaceDefault(baseAddr: string, length: string): Promise<any>;
|
|
57
|
-
setMemoryValue(cpuName: string, baseAddr: string, value: string, length: string): Promise<any>;
|
|
58
|
-
setMemoryValueDefault(baseAddr: string, value: string, length: string): Promise<any>;
|
|
57
|
+
setMemoryValue(cpuName: string, baseAddr: string, value: string, length: string, addressWidth?: number): Promise<any>;
|
|
58
|
+
setMemoryValueDefault(baseAddr: string, value: string, length: string, addressWidth?: number): Promise<any>;
|
|
59
59
|
getCpuRegisters(cpuName: string): Promise<GetCpuRegisterInfoResponse>;
|
|
60
60
|
getCpuRegistersDefault(): Promise<GetCpuRegisterInfoResponse>;
|
|
61
61
|
setCpuRegisterValueDefault(register: Register, value: string): Promise<any>;
|
package/dist/src/SkyEyeClient.js
CHANGED
|
@@ -602,10 +602,10 @@ class SkyEyeClient extends skyeye_rpc_grpc_pb_1.JSONTransmissionClient {
|
|
|
602
602
|
}
|
|
603
603
|
});
|
|
604
604
|
}
|
|
605
|
-
setMemoryValue(cpuName, baseAddr, value, length) {
|
|
605
|
+
setMemoryValue(cpuName, baseAddr, value, length, addressWidth) {
|
|
606
606
|
return __awaiter(this, void 0, void 0, function* () {
|
|
607
607
|
try {
|
|
608
|
-
return yield this.call(RequestFactory_1.RequestFactory.getInstance().setMemoryValue(cpuName, baseAddr, value, length));
|
|
608
|
+
return yield this.call(RequestFactory_1.RequestFactory.getInstance().setMemoryValue(cpuName, baseAddr, value, length, addressWidth));
|
|
609
609
|
}
|
|
610
610
|
catch (error) {
|
|
611
611
|
console.error("Error during getAddressingSpaceDefault:", error);
|
|
@@ -613,12 +613,12 @@ class SkyEyeClient extends skyeye_rpc_grpc_pb_1.JSONTransmissionClient {
|
|
|
613
613
|
}
|
|
614
614
|
});
|
|
615
615
|
}
|
|
616
|
-
setMemoryValueDefault(baseAddr, value, length) {
|
|
616
|
+
setMemoryValueDefault(baseAddr, value, length, addressWidth) {
|
|
617
617
|
return __awaiter(this, void 0, void 0, function* () {
|
|
618
618
|
const cpuList = (yield this.getCpuList()).getCpuList();
|
|
619
619
|
if (cpuList != null && cpuList.length > 0) {
|
|
620
620
|
try {
|
|
621
|
-
return yield this.setMemoryValue(cpuList[0].getName(), baseAddr, value, length);
|
|
621
|
+
return yield this.setMemoryValue(cpuList[0].getName(), baseAddr, value, length, addressWidth);
|
|
622
622
|
}
|
|
623
623
|
catch (error) {
|
|
624
624
|
console.error("Error during getAddressingSpaceDefault:", error);
|
package/package.json
CHANGED
package/src/SkyEyeClient.ts
CHANGED
|
@@ -531,19 +531,19 @@ export class SkyEyeClient extends JSONTransmissionClient {
|
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
|
|
534
|
-
public async setMemoryValue(cpuName: string, baseAddr: string, value: string, length: string) {
|
|
534
|
+
public async setMemoryValue(cpuName: string, baseAddr: string, value: string, length: string, addressWidth?: number) {
|
|
535
535
|
try {
|
|
536
|
-
return await this.call(RequestFactory.getInstance().setMemoryValue(cpuName, baseAddr, value, length));
|
|
536
|
+
return await this.call(RequestFactory.getInstance().setMemoryValue(cpuName, baseAddr, value, length, addressWidth));
|
|
537
537
|
} catch (error) {
|
|
538
538
|
console.error("Error during getAddressingSpaceDefault:", error);
|
|
539
539
|
throw error;
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
|
-
public async setMemoryValueDefault(baseAddr: string, value: string, length: string) {
|
|
542
|
+
public async setMemoryValueDefault(baseAddr: string, value: string, length: string, addressWidth?: number) {
|
|
543
543
|
const cpuList = (await this.getCpuList()).getCpuList();
|
|
544
544
|
if (cpuList != null && cpuList.length > 0) {
|
|
545
545
|
try {
|
|
546
|
-
return await this.setMemoryValue(cpuList[0].getName(), baseAddr, value, length)
|
|
546
|
+
return await this.setMemoryValue(cpuList[0].getName(), baseAddr, value, length, addressWidth)
|
|
547
547
|
} catch (error) {
|
|
548
548
|
console.error("Error during getAddressingSpaceDefault:", error);
|
|
549
549
|
throw error;
|