CanOpenLss Class¶
Opens an ILssMaster on a bus. Non-instantiable.
Inheritance Object → CanOpenLss
Methods¶
CanOpenLss.OpenMaster(ICanBus, LssMasterOptions) Method¶
Opens a master that owns a private CanBusService around bus. Disposing the master disposes that service; the bus itself is not disposed.
public static CanKit.Pro.CANopen.Lss.ILssMaster OpenMaster(CanKit.Abstractions.API.Can.ICanBus bus, CanKit.Pro.CANopen.Lss.LssMasterOptions? options=null);
Parameters¶
bus ICanBus
options LssMasterOptions
Returns¶
CanOpenLss.OpenMaster(ICanBusService, LssMasterOptions, bool) Method¶
Opens a master on an existing service, shared with other protocols on the same bus. With leaveOpentrue (the default) disposing the master does not dispose the service. An LSS slave opened on the same service with OpenNode(ICanBusService, byte, CanOpenNodeOptions, bool) is heard: the master receives frames the adapter flags as this host's echo, which is how such a slave's replies arrive.
public static CanKit.Pro.CANopen.Lss.ILssMaster OpenMaster(CanKit.Pro.RawCan.ICanBusService service, CanKit.Pro.CANopen.Lss.LssMasterOptions? options=null, bool leaveOpen=true);
Parameters¶
service ICanBusService
options LssMasterOptions
leaveOpen Boolean