We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 38372c8 + 72e73bb commit 454e804Copy full SHA for 454e804
CHANGELOG.md
@@ -3,6 +3,7 @@
3
## [Unreleased]
4
5
* Update MSRV to 1.60
6
+* Allow timestamp to be accessed in all modes
7
8
## [v0.2.1] 2024-09-04
9
src/lib.rs
@@ -542,6 +542,12 @@ where
542
) -> Self {
543
Self::create_can(t.0.config, t.0.instance)
544
}
545
+
546
+ /// Returns the current FdCan timestamp counter
547
+ #[inline]
548
+ pub fn timestamp(&self) -> u16 {
549
+ self.control.timestamp()
550
+ }
551
552
553
impl<I> FdCan<I, PoweredDownMode>
@@ -882,12 +888,6 @@ where
882
888
.bit(filter.reject_remote_extended_frames)
883
889
});
884
890
885
-
886
- /// Returns the current FdCan timestamp counter
887
- #[inline]
- pub fn timestamp(&self) -> u16 {
- self.control.timestamp()
- }
891
892
893
impl<I> FdCan<I, InternalLoopbackMode>
0 commit comments