EmcyMessage

EmcyMessage

Structure for storing and parsing CANopen emergency objects.

Constructor

new EmcyMessage(args)

Source:
Parameters:
Name Type Description
args object

arguments.

Properties
Name Type Description
code EmcyCode

error code.

register number

error register (Object 0x1001).

info Buffer

error info.

Methods

(static) isMessage(obj) → {boolean}

Description:
  • Returns true if the object is an instance of EmcyMessage.

Source:
Parameters:
Name Type Description
obj object

object to test.

Returns:

true if obj is an EmcyMessage.

Type
boolean

toBuffer() → {Buffer}

Description:
  • Convert to a Buffer.

Source:
Returns:

encoded data.

Type
Buffer

toString() → {string}

Description:
  • Convert to a string.

Source:
Returns:

string representation.

Type
string