@synapticon/motion-master-client 6.0.0-alpha.43 → 6.0.0-alpha.45

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
  /**
@@ -360,6 +360,22 @@ export declare class Api<SecurityDataType = unknown> extends HttpClient<Security
360
360
  * @request GET:/api/meta/foe-error-codes
361
361
  */
362
362
  getFoeErrorCodes: (params?: RequestParams) => Promise<import("./http-client.js").HttpResponse<FoeErrorCode[], any>>;
363
+ /**
364
+ * @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.
365
+ *
366
+ * @name GetSdoAbortCodes
367
+ * @summary List all known CoE SDO abort codes
368
+ * @request GET:/api/meta/sdo-abort-codes
369
+ */
370
+ getSdoAbortCodes: (params?: RequestParams) => Promise<import("./http-client.js").HttpResponse<SdoAbortCode[], any>>;
371
+ /**
372
+ * @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.
373
+ *
374
+ * @name GetMailboxErrorCodes
375
+ * @summary List all known CoE mailbox error codes
376
+ * @request GET:/api/meta/mailbox-error-codes
377
+ */
378
+ getMailboxErrorCodes: (params?: RequestParams) => Promise<import("./http-client.js").HttpResponse<MailboxErrorCode[], any>>;
363
379
  /**
364
380
  * @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
381
  *
@@ -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.43",
3
+ "version": "6.0.0-alpha.45",
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": {