Class E131DMXDeviceDefinition
Represents the data used to create a E1.31 DMX-device.
Implements
Inherited Members
Namespace: RGB.NET.Devices.DMX.E131
Assembly: RGB.NET.Devices.DMX.dll
Syntax
public sealed class E131DMXDeviceDefinition : IDMXDeviceDefinition
Constructors
| Edit this page View SourceE131DMXDeviceDefinition(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 SourceCID
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[] |
DeviceType
Gets or sets the RGBDeviceType of the device.
Declaration
public RGBDeviceType DeviceType { get; set; }
Property Value
Type | Description |
---|---|
RGBDeviceType |
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 |
Hostname
Gets or sets the hostname of the device.
Declaration
public string Hostname { get; set; }
Property Value
Type | Description |
---|---|
string |
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)>> |
Manufacturer
Gets or sets the manufacturer of the device.
Declaration
public string Manufacturer { get; set; }
Property Value
Type | Description |
---|---|
string |
Model
Gets or sets the model name of the device.
Declaration
public string Model { get; set; }
Property Value
Type | Description |
---|---|
string |
Port
Gets or sets the port to device is listening to.
Declaration
public int Port { get; set; }
Property Value
Type | Description |
---|---|
int |
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 SourceAddLed(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. |