Class CanStat
- Namespace
- Iot.Device.Mcp25xxx.Register.CanControl
- Assembly
- Iot.Device.Mcp25xxx.dll
CAN Status Register.
public class CanStat : IRegister
- Inheritance
-
CanStat
- Implements
Constructors
CanStat(FlagCode, OperationMode)
Initializes a new instance of the CanStat class.
public CanStat(CanStat.FlagCode interruptFlagCode, OperationMode operationMode)
Parameters
interruptFlagCode
CanStat.FlagCodeICOD[2:0]: Interrupt Flag Code bits.
operationMode
OperationModeOPMOD[2:0]: Operation Mode bits.
CanStat(byte)
Initializes a new instance of the CanStat class.
public CanStat(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.
InterruptFlagCode
ICOD[2:0]: Interrupt Flag Code bits.
public CanStat.FlagCode InterruptFlagCode { get; }
Property Value
OperationMode
OPMOD[2:0]: Operation Mode bits.
public OperationMode OperationMode { get; }
Property Value
Methods
ToByte()
Converts register contents to a byte.
public byte ToByte()
Returns
- byte
The byte that represent the register contents.