Skip to content

Commit

Permalink
Seprate tx/rx async drivers; event_queue access for tx/rx drivers
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Sep 19, 2023
1 parent 16f6819 commit 0324e3d
Show file tree
Hide file tree
Showing 2 changed files with 410 additions and 52 deletions.
8 changes: 8 additions & 0 deletions src/can.rs
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,14 @@ where
})
}

pub fn driver(&self) -> &CanDriver<'d> {
self.driver.borrow()
}

pub fn driver_mut(&mut self) -> &mut CanDriver<'d> {
self.driver.borrow_mut()
}

pub fn start(&mut self) -> Result<(), EspError> {
self.driver.borrow_mut().start()
}
Expand Down
Loading

0 comments on commit 0324e3d

Please sign in to comment.