Table of Contents

Class FormatMessagePayload

Namespace
Bonsai.Harp
Assembly
Bonsai.Harp.dll

Represents an operator which formats a sequence of values as Harp messages with the specified address and payload type.

public class FormatMessagePayload : SelectBuilder, IExpressionBuilder
Inheritance
FormatMessagePayload
Implements
Inherited Members

Properties

Address

Gets or sets the address of the register to which the Harp message refers to.

public int? Address { get; set; }

Property Value

int?

MessageType

Gets or sets the type of the formatted message.

[Browsable(false)]
public MessageType? MessageType { get; set; }

Property Value

MessageType?

PayloadType

Gets or sets the type of data to include in the message payload.

public PayloadType? PayloadType { get; set; }

Property Value

PayloadType?

Methods

BuildSelector(Expression)

Returns the expression that specifies how a valid Harp message is created from the input data.

protected override Expression BuildSelector(Expression expression)

Parameters

expression Expression

The input parameter to the selector.

Returns

Expression

The Expression that maps the input parameter to the valid Harp message.