Table of Contents

Class Cnf2

Namespace
Iot.Device.Mcp25xxx.Register.BitTimeConfiguration
Assembly
Iot.Device.Mcp25xxx.dll

Configuration 2 Register.

public class Cnf2 : IRegister
Inheritance
Cnf2
Implements

Constructors

Cnf2(byte)

Initializes a new instance of the Cnf2 class.

public Cnf2(byte value)

Parameters

value byte

The value that represents the register contents.

Cnf2(byte, byte, bool, bool)

Initializes a new instance of the Cnf2 class.

public Cnf2(byte propagationSegmentLength, byte ps1Length, bool samplePointConfiguration, bool ps2BitTimeLength)

Parameters

propagationSegmentLength byte

PRSEG[2:0]: Propagation Segment Length bits.

ps1Length byte

PHSEG1[2:0]: PS1 Length bits.

samplePointConfiguration bool

SAM: Sample Point Configuration bit. True = Bus line is sampled three times at the sample point. False = Bus line is sampled once at the sample point.

ps2BitTimeLength bool

BTLMODE: PS2 Bit Time Length bit. True = Length of PS2 is determined by the PHSEG2[2:0] bits of CNF3. False = Length of PS2 is the greater of PS1 and IPT(2 TQ).

Properties

Address

Gets the address of the register.

public Address Address { get; }

Property Value

Address

The address of the register.

PropagationSegmentLength

PRSEG[2:0]: Propagation Segment Length bits.

public byte PropagationSegmentLength { get; }

Property Value

byte

Ps1Length

PHSEG1[2:0]: PS1 Length bits.

public byte Ps1Length { get; }

Property Value

byte

Ps2BitTimeLength

BTLMODE: PS2 Bit Time Length bit. True = Length of PS2 is determined by the PHSEG2[2:0] bits of CNF3. False = Length of PS2 is the greater of PS1 and IPT(2 TQ).

public bool Ps2BitTimeLength { get; }

Property Value

bool

SamplePointConfiguration

SAM: Sample Point Configuration bit. True = Bus line is sampled three times at the sample point. False = Bus line is sampled once at the sample point.

public bool SamplePointConfiguration { get; }

Property Value

bool

Methods

ToByte()

Converts register contents to a byte.

public byte ToByte()

Returns

byte

The byte that represent the register contents.