Struct mcp25625::MCP25625Config[][src]

pub struct MCP25625Config {
    pub brp: u8,
    pub prop_seg: u8,
    pub ph_seg1: u8,
    pub ph_seg2: u8,
    pub sync_jump_width: u8,
    pub rollover_to_buffer1: bool,
    pub filters_config: FiltersConfig,
    pub operation_mode: McpOperationMode,
}
Expand description

Config for everything

Filters stuff: If FiltersConfig::ReceiveAll is passed, RXM=11 mode is set which disables filters. If only FiltersConfigBUffer0 is passed, filters for Buffer1 is copied from it (Filter0 and Filter1 if not None). If only one filter is used in FiltersConfigBUffer0 (Filter0), second one will be copied from it (Filter1). If FiltersConfigBUffer1 is passed with some filters as None, Filter2 and Filter3 (if not None) will be used to fill the holes.

Time quanta stuff: Tq/bit = 5-25 Nbt = Tq*(sync_seg=1 + prop_seg + ph_seg1 + ph_seg2) Nbr = 1/Nbt

Fields

brp: u8

0-63, Tq = 2*(brp+1) / Fosc

prop_seg: u8

1-8 Tq

ph_seg1: u8

1-8 Tq

ph_seg2: u8

2-8 Tq

sync_jump_width: u8

1-4 Tq

rollover_to_buffer1: bool

If Buffer0 is already full, copy message to Buffer1 instead

filters_config: FiltersConfig

Enable filters or receive everything

operation_mode: McpOperationMode

Switch to this mode after configuration

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.