Skip to content

Commit

Permalink
visibility updates: export reg crate
Browse files Browse the repository at this point in the history
  • Loading branch information
robamu committed Jun 24, 2024
1 parent 030919b commit c87a20c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#![no_std]
#![forbid(unsafe_code)]

mod reg;
pub mod reg;

Check failure on line 14 in src/lib.rs

View workflow job for this annotation

GitHub Actions / build (--no-default-features)

missing documentation for a module

Check failure on line 14 in src/lib.rs

View workflow job for this annotation

GitHub Actions / build (--all-features)

missing documentation for a module

use core::fmt::Debug;
use core::marker::PhantomData;
Expand All @@ -28,8 +28,8 @@ use hal::i2c::I2c;
#[cfg(feature = "out_f32")]
use num_traits::FromPrimitive;

use crate::reg::*;
pub use crate::reg::{Aoi6d, FifoMode, FullScale, Mode, Odr};
use reg::*;
pub use reg::{Aoi6d, FifoMode, FullScale, Mode, Odr};

/// Possible slave addresses
pub enum SlaveAddr {
Expand All @@ -42,8 +42,8 @@ pub enum SlaveAddr {
impl SlaveAddr {
fn addr(self) -> u8 {
match self {
SlaveAddr::Default => I2C_SAD,
SlaveAddr::Alternative(a0) => I2C_SAD | a0 as u8,
SlaveAddr::Default => reg::I2C_SAD,
SlaveAddr::Alternative(a0) => reg::I2C_SAD | a0 as u8,
}
}
}
Expand Down

0 comments on commit c87a20c

Please sign in to comment.