File tree 4 files changed +9
-9
lines changed 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 4
4
5
5
/// Newtype around [`gpio_cdev::LineHandle`] that implements the `embedded-hal` traits
6
6
///
7
- /// [`gpio_cdev::LineHandle`]: https://docs.rs/gpio-cdev/0.2 .0/gpio_cdev/struct.LineHandle.html
7
+ /// [`gpio_cdev::LineHandle`]: https://docs.rs/gpio-cdev/0.5 .0/gpio_cdev/struct.LineHandle.html
8
8
pub struct CdevPin ( pub gpio_cdev:: LineHandle , bool ) ;
9
9
10
10
impl CdevPin {
11
11
/// See [`gpio_cdev::Line::request`][0] for details.
12
12
///
13
- /// [0]: https://docs.rs/gpio-cdev/0.2 .0/gpio_cdev/struct.Line.html#method.request
13
+ /// [0]: https://docs.rs/gpio-cdev/0.5 .0/gpio_cdev/struct.Line.html#method.request
14
14
pub fn new ( handle : gpio_cdev:: LineHandle ) -> Result < Self , gpio_cdev:: errors:: Error > {
15
15
let info = handle. line ( ) . info ( ) ?;
16
16
Ok ( CdevPin ( handle, info. is_active_low ( ) ) )
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ use std::path::{Path, PathBuf};
7
7
8
8
/// Newtype around [`i2cdev::linux::LinuxI2CDevice`] that implements the `embedded-hal` traits
9
9
///
10
- /// [`i2cdev::linux::LinuxI2CDevice`]: https://docs.rs/i2cdev/0.3.1 /i2cdev/linux/struct.LinuxI2CDevice.html
10
+ /// [`i2cdev::linux::LinuxI2CDevice`]: https://docs.rs/i2cdev/0.5.0 /i2cdev/linux/struct.LinuxI2CDevice.html
11
11
pub struct I2cdev {
12
12
inner : i2cdev:: linux:: LinuxI2CDevice ,
13
13
path : PathBuf ,
@@ -17,7 +17,7 @@ pub struct I2cdev {
17
17
impl I2cdev {
18
18
/// See [`i2cdev::linux::LinuxI2CDevice::new`][0] for details.
19
19
///
20
- /// [0]: https://docs.rs/i2cdev/0.3.1 /i2cdev/linux/struct.LinuxI2CDevice.html#method.new
20
+ /// [0]: https://docs.rs/i2cdev/0.5.0 /i2cdev/linux/struct.LinuxI2CDevice.html#method.new
21
21
pub fn new < P > ( path : P ) -> Result < Self , i2cdev:: linux:: LinuxI2CError >
22
22
where
23
23
P : AsRef < Path > ,
Original file line number Diff line number Diff line change @@ -9,13 +9,13 @@ use std::path::Path;
9
9
10
10
/// Newtype around [`spidev::Spidev`] that implements the `embedded-hal` traits
11
11
///
12
- /// [`spidev::Spidev`]: https://docs.rs/spidev/0.4 .0/spidev/struct.Spidev.html
12
+ /// [`spidev::Spidev`]: https://docs.rs/spidev/0.5 .0/spidev/struct.Spidev.html
13
13
pub struct Spidev ( pub spidev:: Spidev ) ;
14
14
15
15
impl Spidev {
16
16
/// See [`spidev::Spidev::open`][0] for details.
17
17
///
18
- /// [0]: https://docs.rs/spidev/0.4 .0/spidev/struct.Spidev.html#method.open
18
+ /// [0]: https://docs.rs/spidev/0.5 .0/spidev/struct.Spidev.html#method.open
19
19
pub fn open < P > ( path : P ) -> io:: Result < Self >
20
20
where
21
21
P : AsRef < Path > ,
Original file line number Diff line number Diff line change @@ -6,20 +6,20 @@ use std::path::Path;
6
6
7
7
/// Newtype around [`sysfs_gpio::Pin`] that implements the `embedded-hal` traits
8
8
///
9
- /// [`sysfs_gpio::Pin`]: https://docs.rs/sysfs_gpio/0.5.1 /sysfs_gpio/struct.Pin.html
9
+ /// [`sysfs_gpio::Pin`]: https://docs.rs/sysfs_gpio/0.6.0 /sysfs_gpio/struct.Pin.html
10
10
pub struct SysfsPin ( pub sysfs_gpio:: Pin ) ;
11
11
12
12
impl SysfsPin {
13
13
/// See [`sysfs_gpio::Pin::new`][0] for details.
14
14
///
15
- /// [0]: https://docs.rs/sysfs_gpio/0.5.1 /sysfs_gpio/struct.Pin.html#method.new
15
+ /// [0]: https://docs.rs/sysfs_gpio/0.6.0 /sysfs_gpio/struct.Pin.html#method.new
16
16
pub fn new ( pin_num : u64 ) -> Self {
17
17
SysfsPin ( sysfs_gpio:: Pin :: new ( pin_num) )
18
18
}
19
19
20
20
/// See [`sysfs_gpio::Pin::from_path`][0] for details.
21
21
///
22
- /// [0]: https://docs.rs/sysfs_gpio/0.5.1 /sysfs_gpio/struct.Pin.html#method.from_path
22
+ /// [0]: https://docs.rs/sysfs_gpio/0.6.0 /sysfs_gpio/struct.Pin.html#method.from_path
23
23
pub fn from_path < P > ( path : P ) -> sysfs_gpio:: Result < Self >
24
24
where
25
25
P : AsRef < Path > ,
You can’t perform that action at this time.
0 commit comments