Show / Hide Table of Contents

Class E131DMXDeviceDefinition

Represents the data used to create a E1.31 DMX-device.

Inheritance
object
E131DMXDeviceDefinition
Implements
IDMXDeviceDefinition
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: RGB.NET.Devices.DMX.E131
Assembly: RGB.NET.Devices.DMX.dll
Syntax
public sealed class E131DMXDeviceDefinition : IDMXDeviceDefinition

Constructors

| Edit this page View Source

E131DMXDeviceDefinition(string)

Initializes a new instance of the E131DMXDeviceDefinition class.

Declaration
public E131DMXDeviceDefinition(string hostname)
Parameters
Type Name Description
string hostname

The hostname of the device.

Properties

| Edit this page View Source

CID

Gets or sets the CID of the device (null will generate a random CID)

Declaration
public byte[]? CID { get; set; }
Property Value
Type Description
byte[]
| Edit this page View Source

DeviceType

Gets or sets the RGBDeviceType of the device.

Declaration
public RGBDeviceType DeviceType { get; set; }
Property Value
Type Description
RGBDeviceType
| Edit this page View Source

HeartbeatTimer

The time in ms after which the device is updated even if no changes are made in the meantime to prevent the target from timing out or similar problems. To disable heartbeats leave it at 0.

Declaration
public int HeartbeatTimer { get; set; }
Property Value
Type Description
int
| Edit this page View Source

Hostname

Gets or sets the hostname of the device.

Declaration
public string Hostname { get; set; }
Property Value
Type Description
string
| Edit this page View Source

Leds

Gets or sets the led-mappings used to create the device.

Declaration
public Dictionary<LedId, List<(int channel, Func<Color, byte> getValueFunc)>> Leds { get; }
Property Value
Type Description
Dictionary<LedId, List<(int channel, Func<Color, byte> getValueFunc)>>
| Edit this page View Source

Manufacturer

Gets or sets the manufacturer of the device.

Declaration
public string Manufacturer { get; set; }
Property Value
Type Description
string
| Edit this page View Source

Model

Gets or sets the model name of the device.

Declaration
public string Model { get; set; }
Property Value
Type Description
string
| Edit this page View Source

Port

Gets or sets the port to device is listening to.

Declaration
public int Port { get; set; }
Property Value
Type Description
int
| Edit this page View Source

Universe

Gets or sets the universe the device belongs to.

Declaration
public short Universe { get; set; }
Property Value
Type Description
short

Methods

| Edit this page View Source

AddLed(LedId, params (int channel, Func<Color, byte> getValueFunc)[])

Adds a led-mapping to the device.

Declaration
public void AddLed(LedId id, params (int channel, Func<Color, byte> getValueFunc)[] channels)
Parameters
Type Name Description
LedId id

The LedId used to identify the led.

(int channel, Func<Color, byte> getValueFunc)[] channels

The channels the led is using and a function mapping parts of the color to them.

Implements

IDMXDeviceDefinition
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX