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
boolEWARN: 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
boolRXWAR: Receive Error Warning Flag bit. Sets when REC is equal to or greater than 96. Resets when REC is less than 96.
transmitErrorWarningFlag
boolTXWAR: Transmit Error Warning Flag bit. Sets when TEC is equal to or greater than 96. Resets when TEC is less than 96.
receiveErrorPassiveFlag
boolRXEP: Receive Error-Passive Flag bit. Sets when REC is equal to or greater than 128. Resets when REC is less than 128.
transmitErrorPassiveFlag
boolTXEP: Transmit Error-Passive Flag bit. Sets when TEC is equal to or greater than 128. Resets when TEC is less than 128.
busOffErrorFlag
boolTXBO: Bus-Off Error Flag bit. Bit sets when TEC reaches 255. Resets after a successful bus recovery sequence.
receiveBuffer0OverflowFlag
boolRX0OVR: 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
boolRX1OVR: 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
byteThe 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
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
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
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
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
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
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
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
Methods
ToByte()
Converts register contents to a byte.
public byte ToByte()
Returns
- byte
The byte that represent the register contents.