Skip to content

Commit

Permalink
pub use TimingConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
pd0wm committed Dec 6, 2024
1 parent c87cbd7 commit 9d36472
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/can/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use std::fmt;

pub use adapter::get_adapter;
pub use async_can::AsyncCanAdapter;
pub use timing::{BitTiming, TimingConfig};

pub static DLC_TO_LEN: &[usize] = &[0, 1, 2, 3, 4, 5, 6, 7, 8, 12, 16, 20, 24, 32, 48, 64];

Expand Down
2 changes: 1 addition & 1 deletion src/panda/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ mod usb_protocol;
pub use error::Error;
use std::collections::VecDeque;

use crate::can::timing::TimingConfig;
use crate::can::AsyncCanAdapter;
use crate::can::CanAdapter;
use crate::can::Frame;
use crate::can::TimingConfig;
use crate::panda::constants::{Endpoint, HwType, SafetyModel, FD_PANDAS};
use crate::Result;
use tracing::{info, warn};
Expand Down
2 changes: 1 addition & 1 deletion src/socketcan/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ impl CanAdapter for SocketCan {
fn config_timing(
&mut self,
_bus: usize,
_config: &crate::can::timing::TimingConfig,
_config: &crate::can::TimingConfig,
) -> crate::Result<()> {
warn!("Ignoring timing config. Set using ip link");
// TODO: Report error instead?
Expand Down
2 changes: 1 addition & 1 deletion src/vector/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ impl CanAdapter for VectorCan {
fn config_timing(
&mut self,
_bus: usize,
_config: &crate::can::timing::TimingConfig,
_config: &crate::can::TimingConfig,
) -> crate::Result<()> {
todo!("No yet implemented");
Ok(())
Expand Down

0 comments on commit 9d36472

Please sign in to comment.