You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Options the CAN bus. This is primarily used to set bus timings, but also controls options like enabling loopback or silent mode for debugging.
29
-
/// See http://www.bittiming.can-wiki.info/#bxCAN for generating the timing parameters for different baud rates and clocks.
28
+
/// Options for the CAN bus.
29
+
///
30
+
/// This is primarily used to set bus timings, but also controls options like enabling loopback or silent mode for debugging.
31
+
/// See <http://www.bittiming.can-wiki.info/#bxCAN> for generating the timing parameters for different baud rates and clocks.
30
32
///
31
33
/// Use `CanOpts::default()` to get 250kbps at 32mhz system clock
32
34
pubstructCanOpts{
@@ -43,25 +45,25 @@ impl CanOpts {
43
45
CanOpts::default()
44
46
}
45
47
46
-
/// Set the Baud Rate Prescaler. See http://www.bittiming.can-wiki.info/#bxCAN for generating the timing parameters for different baud rates and clocks.
48
+
/// Set the Baud Rate Prescaler. See <http://www.bittiming.can-wiki.info/#bxCAN> for generating the timing parameters for different baud rates and clocks.
47
49
pubfnbrp(mutself,brp:u16) -> Self{
48
50
self.brp = brp;
49
51
self
50
52
}
51
53
52
-
/// Set the Resynchronisation Jump Width. See http://www.bittiming.can-wiki.info/#bxCAN for generating the timing parameters for different baud rates and clocks.
54
+
/// Set the Resynchronisation Jump Width. See <http://www.bittiming.can-wiki.info/#bxCAN> for generating the timing parameters for different baud rates and clocks.
53
55
pubfnsjw(mutself,sjw:u8) -> Self{
54
56
self.sjw = sjw;
55
57
self
56
58
}
57
59
58
-
/// Set Time Segment One. See http://www.bittiming.can-wiki.info/#bxCAN for generating the timing parameters for different baud rates and clocks.
60
+
/// Set Time Segment One. See <http://www.bittiming.can-wiki.info/#bxCAN> for generating the timing parameters for different baud rates and clocks.
59
61
pubfnts1(mutself,ts1:u8) -> Self{
60
62
self.ts1 = ts1;
61
63
self
62
64
}
63
65
64
-
/// Set Time Segment Two. See http://www.bittiming.can-wiki.info/#bxCAN for generating the timing parameters for different baud rates and clocks.
66
+
/// Set Time Segment Two. See <http://www.bittiming.can-wiki.info/#bxCAN> for generating the timing parameters for different baud rates and clocks.
0 commit comments