Class RgbAll
Represents a register that specifies the state of all RGB LED channels.
public class RgbAll
- Inheritance
-
RgbAll
- Inherited Members
Fields
Address
Represents the address of the RgbAll register. This field is constant.
public const int Address = 70
Field Value
RegisterLength
Represents the length of the RgbAll register. This field is constant.
public const int RegisterLength = 6
Field Value
RegisterType
Represents the payload type of the RgbAll register. This field is constant.
public const PayloadType RegisterType = U8
Field Value
Methods
FromPayload(MessageType, RgbAllPayload)
Returns a Harp message for the RgbAll register.
public static HarpMessage FromPayload(MessageType messageType, RgbAllPayload value)
Parameters
messageType
MessageTypeThe type of the Harp message.
value
RgbAllPayloadThe value to be stored in the message payload.
Returns
- HarpMessage
A HarpMessage object for the RgbAll register with the specified message type and payload.
FromPayload(double, MessageType, RgbAllPayload)
Returns a timestamped Harp message for the RgbAll register.
public static HarpMessage FromPayload(double timestamp, MessageType messageType, RgbAllPayload value)
Parameters
timestamp
doubleThe timestamp of the message payload, in seconds.
messageType
MessageTypeThe type of the Harp message.
value
RgbAllPayloadThe value to be stored in the message payload.
Returns
- HarpMessage
A HarpMessage object for the RgbAll register with the specified message type, timestamp, and payload.
GetPayload(HarpMessage)
Returns the payload data for RgbAll register messages.
public static RgbAllPayload GetPayload(HarpMessage message)
Parameters
message
HarpMessageA HarpMessage object representing the register message.
Returns
- RgbAllPayload
A value representing the message payload.
GetTimestampedPayload(HarpMessage)
Returns the timestamped payload data for RgbAll register messages.
public static Timestamped<RgbAllPayload> GetTimestampedPayload(HarpMessage message)
Parameters
message
HarpMessageA HarpMessage object representing the register message.
Returns
- Timestamped<RgbAllPayload>
A value representing the timestamped message payload.