Class CanCtrl
- Namespace
- Iot.Device.Mcp25xxx.Register.CanControl
- Assembly
- Iot.Device.Mcp25xxx.dll
CAN Control Register.
public class CanCtrl : IRegister
- Inheritance
-
CanCtrl
- Implements
Constructors
CanCtrl(PinPrescaler, bool, bool, bool, OperationMode)
Initializes a new instance of the CanCtrl class.
public CanCtrl(CanCtrl.PinPrescaler clkOutPinPrescaler, bool clkOutPinEnable, bool oneShotMode, bool abortAllPendingTransmissions, OperationMode requestOperationMode)
Parameters
clkOutPinPrescaler
CanCtrl.PinPrescalerCLKPRE[1:0]: CLKOUT Pin Prescaler bits.
clkOutPinEnable
boolCLKEN: CLKOUT Pin Enable bit. True = CLKOUT pin is enabled. False = CLKOUT pin is disabled(pin is in a high-impedance state).
oneShotMode
boolOSM: One-Shot Mode bit. True = Enabled: Message will only attempt to transmit one time. False = Disabled: Messages will reattempt transmission if required.
abortAllPendingTransmissions
boolABAT: Abort All Pending Transmissions bit. True = Requests abort of all pending transmit buffers. False = Terminates request to abort all transmissions.
requestOperationMode
OperationModeREQOP[2:0]: Request Operation mode bits.
CanCtrl(byte)
Initializes a new instance of the CanCtrl class.
public CanCtrl(byte value)
Parameters
value
byteThe value that represents the register contents.
Properties
AbortAllPendingTransmissions
ABAT: Abort All Pending Transmissions bit. True = Requests abort of all pending transmit buffers. False = Terminates request to abort all transmissions.
public bool AbortAllPendingTransmissions { get; }
Property Value
Address
Gets the address of the register.
public Address Address { get; }
Property Value
- Address
The address of the register.
ClkOutPinEnable
CLKEN: CLKOUT Pin Enable bit. True = CLKOUT pin is enabled. False = CLKOUT pin is disabled (pin is in a high-impedance state).
public bool ClkOutPinEnable { get; }
Property Value
ClkOutPinPrescaler
CLKPRE[1:0]: CLKOUT Pin Prescaler bits.
public CanCtrl.PinPrescaler ClkOutPinPrescaler { get; }
Property Value
OneShotMode
OSM: One-Shot Mode bit. True = Enabled: Message will only attempt to transmit one time. False = Disabled: Messages will reattempt transmission if required.
public bool OneShotMode { get; }
Property Value
RequestOperationMode
REQOP[2:0]: Request Operation mode bits.
public OperationMode RequestOperationMode { get; }
Property Value
Methods
ToByte()
Converts register contents to a byte.
public byte ToByte()
Returns
- byte
The byte that represent the register contents.