Class ChannelConfig
CAN channel configuration
public class ChannelConfig
- Inheritance
-
ChannelConfig
- Inherited Members
Constructors
ChannelConfig()
Creates a default channel configuration with 250 kbps baud rate
public ChannelConfig()
ChannelConfig(uint)
Creates a channel configuration with specified baud rate
public ChannelConfig(uint baudRate)
Parameters
baudRateuintBaud rate in bps
Properties
AcceptanceCode
Acceptance code for filtering (0x0 accepts all when used with mask 0x1FFFFFFF)
public uint AcceptanceCode { get; set; }
Property Value
AcceptanceMask
Acceptance mask for filtering (0x1FFFFFFF accepts all)
public uint AcceptanceMask { get; set; }
Property Value
BaudRate
Baud rate in bps (e.g., 250000 for 250 kbps)
public uint BaudRate { get; set; }
Property Value
EnableTxEcho
Whether to enable transmit echo (receive own transmitted frames)
public bool EnableTxEcho { get; set; }
Property Value
Mode
Channel operating mode
public ChannelMode Mode { get; set; }
Property Value
Methods
ListenOnly(uint)
Creates a listen-only configuration (for monitoring)
public static ChannelConfig ListenOnly(uint baudRate = 250000)
Parameters
baudRateuint
Returns
Standard125K()
Creates a standard 125 kbps configuration
public static ChannelConfig Standard125K()
Returns
Standard250K()
Creates a standard 250 kbps configuration
public static ChannelConfig Standard250K()
Returns
Standard500K()
Creates a standard 500 kbps configuration
public static ChannelConfig Standard500K()