Table of Contents

Class Eflg

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

Error Flag Register.

public class Eflg : IRegister
Inheritance
Eflg
Implements

Constructors

Eflg(bool, bool, bool, bool, bool, bool, bool, bool)

Initializes a new instance of the Eflg class.

public Eflg(bool errorWarningFlag, bool receiveErrorWarningFlag, bool transmitErrorWarningFlag, bool receiveErrorPassiveFlag, bool transmitErrorPassiveFlag, bool busOffErrorFlag, bool receiveBuffer0OverflowFlag, bool receiveBuffer1OverflowFlag)

Parameters

errorWarningFlag bool

EWARN: Error Warning Flag bit. Sets when TEC or REC is equal to or greater than 96 (TXWAR or RXWAR = 1). Resets when both REC and TEC are less than 96.

receiveErrorWarningFlag bool

RXWAR: Receive Error Warning Flag bit. Sets when REC is equal to or greater than 96. Resets when REC is less than 96.

transmitErrorWarningFlag bool

TXWAR: Transmit Error Warning Flag bit. Sets when TEC is equal to or greater than 96. Resets when TEC is less than 96.

receiveErrorPassiveFlag bool

RXEP: Receive Error-Passive Flag bit. Sets when REC is equal to or greater than 128. Resets when REC is less than 128.

transmitErrorPassiveFlag bool

TXEP: Transmit Error-Passive Flag bit. Sets when TEC is equal to or greater than 128. Resets when TEC is less than 128.

busOffErrorFlag bool

TXBO: Bus-Off Error Flag bit. Bit sets when TEC reaches 255. Resets after a successful bus recovery sequence.

receiveBuffer0OverflowFlag bool

RX0OVR: Receive Buffer 0 Overflow Flag bit. Sets when a valid message is received for RXB0 and the RX0IF bit in the CANINTF register is ‘1’. Must be reset by MCU.

receiveBuffer1OverflowFlag bool

RX1OVR: Receive Buffer 1 Overflow Flag bit. Sets when a valid message is received for RXB1 and the RX1IF bit in the CANINTF register is ‘1’. Must be reset by MCU.

Eflg(byte)

Initializes a new instance of the Eflg class.

public Eflg(byte value)

Parameters

value byte

The value that represents the register contents.

Properties

Address

Gets the address of the register.

public Address Address { get; }

Property Value

Address

The address of the register.

BusOffErrorFlag

TXBO: Bus-Off Error Flag bit. Bit sets when TEC reaches 255. Resets after a successful bus recovery sequence.

public bool BusOffErrorFlag { get; }

Property Value

bool

ErrorWarningFlag

EWARN: Error Warning Flag bit. Sets when TEC or REC is equal to or greater than 96 (TXWAR or RXWAR = 1). Resets when both REC and TEC are less than 96.

public bool ErrorWarningFlag { get; }

Property Value

bool

ReceiveBuffer0OverflowFlag

RX0OVR: Receive Buffer 0 Overflow Flag bit. Sets when a valid message is received for RXB0 and the RX0IF bit in the CANINTF register is ‘1’. Must be reset by MCU.

public bool ReceiveBuffer0OverflowFlag { get; }

Property Value

bool

ReceiveBuffer1OverflowFlag

RX1OVR: Receive Buffer 1 Overflow Flag bit. Sets when a valid message is received for RXB1 and the RX1IF bit in the CANINTF register is ‘1’. Must be reset by MCU.

public bool ReceiveBuffer1OverflowFlag { get; }

Property Value

bool

ReceiveErrorPassiveFlag

RXEP: Receive Error-Passive Flag bit. Sets when REC is equal to or greater than 128. Resets when REC is less than 128.

public bool ReceiveErrorPassiveFlag { get; }

Property Value

bool

ReceiveErrorWarningFlag

RXWAR: Receive Error Warning Flag bit. Sets when REC is equal to or greater than 96. Resets when REC is less than 96.

public bool ReceiveErrorWarningFlag { get; }

Property Value

bool

TransmitErrorPassiveFlag

TXEP: Transmit Error-Passive Flag bit. Sets when TEC is equal to or greater than 128. Resets when TEC is less than 128.

public bool TransmitErrorPassiveFlag { get; }

Property Value

bool

TransmitErrorWarningFlag

TXWAR: Transmit Error Warning Flag bit. Sets when TEC is equal to or greater than 96. Resets when TEC is less than 96.

public bool TransmitErrorWarningFlag { get; }

Property Value

bool

Methods

ToByte()

Converts register contents to a byte.

public byte ToByte()

Returns

byte

The byte that represent the register contents.