Skip to content

Home > resol-vbus-core > PacketField

PacketField class ​

A packet field.

Signature:

typescript
export declare class PacketField

Constructors ​

Constructor

Modifiers

Description

(constructor)(options)

Construct a packet field.

Properties ​

Property

Modifiers

Type

Description

fieldSpec

PacketFieldSpecification

The field specification.

packet

Packet

The packet.

packetSpec

PacketSpecification

The packet specification.

Methods ​

Method

Modifiers

Description

formatTextValue(unit)

Format the value to its textual representation.

getBigIntRawValue()

Get the raw value as an unscaled BigInt.

getFloatRawValue()

Get the raw value as a scaled floating point number.

setBigIntRawValue(value)

Set the raw value from an unscaled BigInt.

setFloatRawValue(value)

Set the raw value from a scaled floating point number.