@synapticon/motion-master-client 6.0.0-alpha.44 → 6.0.0-alpha.46

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.
@@ -1,4 +1,4 @@
1
- import { AlStatusCode, DcSyncStatus, DeviceDiagnostics, DeviceParameter, EscRegister, FoeErrorCode, GameLoopHealth, Monitoring, ObjectDataTypeInfo, OutputStageResult, ParameterCacheEntry, PdoMapping, PdoMappingRequest, ProcessDataWatchdog, ProcessImageObject, SlaveConfig, SlaveInformationInterface } from "./data-contracts.js";
1
+ import { AlStatusCode, DcSyncStatus, DeviceDiagnostics, DeviceParameter, EscRegister, FoeErrorCode, GameLoopHealth, MailboxErrorCode, Monitoring, ObjectDataTypeInfo, OutputStageResult, ParameterCacheEntry, PdoMapping, PdoMappingRequest, ProcessDataWatchdog, ProcessImageObject, SdoAbortCode, SlaveConfig, SlaveInformationInterface } from "./data-contracts.js";
2
2
  import { HttpClient, RequestParams } from "./http-client.js";
3
3
  export declare class Api<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
4
4
  /**
@@ -13,7 +13,12 @@ export declare class Api<SecurityDataType = unknown> extends HttpClient<Security
13
13
  * MAC address in colon-separated uppercase format
14
14
  * @example "AA:BB:CC:DD:EE:FF"
15
15
  */
16
- mac: string;
16
+ macLinux: string;
17
+ /**
18
+ * MAC address in dash-separated uppercase format
19
+ * @example "AA-BB-CC-DD-EE-FF"
20
+ */
21
+ macWindows: string;
17
22
  /**
18
23
  * OS interface name (e.g. eth0 on Linux, \\Device\\NPF_{GUID} on Windows)
19
24
  * @example "eth0"
@@ -360,6 +365,22 @@ export declare class Api<SecurityDataType = unknown> extends HttpClient<Security
360
365
  * @request GET:/api/meta/foe-error-codes
361
366
  */
362
367
  getFoeErrorCodes: (params?: RequestParams) => Promise<import("./http-client.js").HttpResponse<FoeErrorCode[], any>>;
368
+ /**
369
+ * @description Returns the static catalogue of CoE SDO abort codes defined in ETG.1000.6 §5.6.2.7.2, Table 41 (which reproduces the CANopen CiA 301 abort transfer codes). A slave returns one of these when a mailbox SDO read/write fails; the code is embedded in the error text returned by the SDO endpoints.
370
+ *
371
+ * @name GetSdoAbortCodes
372
+ * @summary List all known CoE SDO abort codes
373
+ * @request GET:/api/meta/sdo-abort-codes
374
+ */
375
+ getSdoAbortCodes: (params?: RequestParams) => Promise<import("./http-client.js").HttpResponse<SdoAbortCode[], any>>;
376
+ /**
377
+ * @description Returns the static catalogue of CoE mailbox error codes defined in ETG.1000.4, Table 30 ("Error Reply Service Data"). A slave returns one of these when the mailbox layer (below a specific protocol such as CoE/FoE) rejects a transfer; the code is embedded in the error text the mailbox endpoints return.
378
+ *
379
+ * @name GetMailboxErrorCodes
380
+ * @summary List all known CoE mailbox error codes
381
+ * @request GET:/api/meta/mailbox-error-codes
382
+ */
383
+ getMailboxErrorCodes: (params?: RequestParams) => Promise<import("./http-client.js").HttpResponse<MailboxErrorCode[], any>>;
363
384
  /**
364
385
  * @description Returns the static catalogue of ETG.1020 data type codes used in CoE object dictionary entries. Each entry of a `DeviceParameter` carries a `dataType` field whose value is one of the codes listed here.
365
386
  *
@@ -194,6 +194,32 @@ export class Api extends HttpClient {
194
194
  format: "json",
195
195
  ...params,
196
196
  });
197
+ /**
198
+ * @description Returns the static catalogue of CoE SDO abort codes defined in ETG.1000.6 §5.6.2.7.2, Table 41 (which reproduces the CANopen CiA 301 abort transfer codes). A slave returns one of these when a mailbox SDO read/write fails; the code is embedded in the error text returned by the SDO endpoints.
199
+ *
200
+ * @name GetSdoAbortCodes
201
+ * @summary List all known CoE SDO abort codes
202
+ * @request GET:/api/meta/sdo-abort-codes
203
+ */
204
+ getSdoAbortCodes = (params = {}) => this.request({
205
+ path: `/api/meta/sdo-abort-codes`,
206
+ method: "GET",
207
+ format: "json",
208
+ ...params,
209
+ });
210
+ /**
211
+ * @description Returns the static catalogue of CoE mailbox error codes defined in ETG.1000.4, Table 30 ("Error Reply Service Data"). A slave returns one of these when the mailbox layer (below a specific protocol such as CoE/FoE) rejects a transfer; the code is embedded in the error text the mailbox endpoints return.
212
+ *
213
+ * @name GetMailboxErrorCodes
214
+ * @summary List all known CoE mailbox error codes
215
+ * @request GET:/api/meta/mailbox-error-codes
216
+ */
217
+ getMailboxErrorCodes = (params = {}) => this.request({
218
+ path: `/api/meta/mailbox-error-codes`,
219
+ method: "GET",
220
+ format: "json",
221
+ ...params,
222
+ });
197
223
  /**
198
224
  * @description Returns the static catalogue of ETG.1020 data type codes used in CoE object dictionary entries. Each entry of a `DeviceParameter` carries a `dataType` field whose value is one of the codes listed here.
199
225
  *
@@ -673,6 +673,35 @@ export interface FoeErrorCode {
673
673
  */
674
674
  description: string;
675
675
  }
676
+ export interface SdoAbortCode {
677
+ /**
678
+ * 32-bit CoE SDO abort code (ETG.1000.6 §5.6.2.7.2, Table 41)
679
+ * @example 100794368
680
+ */
681
+ code: number;
682
+ /**
683
+ * Human-readable meaning of the abort
684
+ * @example "The object does not exist in the object dictionary"
685
+ */
686
+ description: string;
687
+ }
688
+ export interface MailboxErrorCode {
689
+ /**
690
+ * 16-bit mailbox error Detail code (ETG.1000.4, Table 30)
691
+ * @example 1
692
+ */
693
+ code: number;
694
+ /**
695
+ * Symbolic name
696
+ * @example "MBXERR_SYNTAX"
697
+ */
698
+ name: string;
699
+ /**
700
+ * Human-readable meaning of the error
701
+ * @example "Syntax of the 6-octet mailbox header is wrong"
702
+ */
703
+ description: string;
704
+ }
676
705
  export interface ObjectDataTypeInfo {
677
706
  /**
678
707
  * ETG.1020 data type code
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synapticon/motion-master-client",
3
- "version": "6.0.0-alpha.44",
3
+ "version": "6.0.0-alpha.46",
4
4
  "description": "Isomorphic TypeScript client for Motion Master: the generated HTTP API client, the WebSocket connection, and helpers.",
5
5
  "license": "MIT",
6
6
  "repository": {