File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 22
33/// Newtype around [`gpio_cdev::LineHandle`] that implements the `embedded-hal` traits
44///
5- /// [`gpio_cdev::LineHandle`]: https://docs.rs/gpio-cdev/0.2 .0/gpio_cdev/struct.LineHandle.html
5+ /// [`gpio_cdev::LineHandle`]: https://docs.rs/gpio-cdev/0.5 .0/gpio_cdev/struct.LineHandle.html
66pub struct CdevPin ( pub gpio_cdev:: LineHandle , bool ) ;
77
88impl CdevPin {
99 /// See [`gpio_cdev::Line::request`][0] for details.
1010 ///
11- /// [0]: https://docs.rs/gpio-cdev/0.2 .0/gpio_cdev/struct.Line.html#method.request
11+ /// [0]: https://docs.rs/gpio-cdev/0.5 .0/gpio_cdev/struct.Line.html#method.request
1212 pub fn new ( handle : gpio_cdev:: LineHandle ) -> Result < Self , gpio_cdev:: errors:: Error > {
1313 let info = handle. line ( ) . info ( ) ?;
1414 Ok ( CdevPin ( handle, info. is_active_low ( ) ) )
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ impl hal::blocking::delay::DelayMs<u64> for Delay {
117117
118118/// Newtype around [`i2cdev::linux::LinuxI2CDevice`] that implements the `embedded-hal` traits
119119///
120- /// [`i2cdev::linux::LinuxI2CDevice`]: https://docs.rs/i2cdev/0.3.1 /i2cdev/linux/struct.LinuxI2CDevice.html
120+ /// [`i2cdev::linux::LinuxI2CDevice`]: https://docs.rs/i2cdev/0.5.0 /i2cdev/linux/struct.LinuxI2CDevice.html
121121pub struct I2cdev {
122122 inner : i2cdev:: linux:: LinuxI2CDevice ,
123123 path : PathBuf ,
@@ -127,7 +127,7 @@ pub struct I2cdev {
127127impl I2cdev {
128128 /// See [`i2cdev::linux::LinuxI2CDevice::new`][0] for details.
129129 ///
130- /// [0]: https://docs.rs/i2cdev/0.3.1 /i2cdev/linux/struct.LinuxI2CDevice.html#method.new
130+ /// [0]: https://docs.rs/i2cdev/0.5.0 /i2cdev/linux/struct.LinuxI2CDevice.html#method.new
131131 pub fn new < P > ( path : P ) -> Result < Self , i2cdev:: linux:: LinuxI2CError >
132132 where
133133 P : AsRef < Path > ,
@@ -217,13 +217,13 @@ impl ops::DerefMut for I2cdev {
217217
218218/// Newtype around [`spidev::Spidev`] that implements the `embedded-hal` traits
219219///
220- /// [`spidev::Spidev`]: https://docs.rs/spidev/0.4 .0/spidev/struct.Spidev.html
220+ /// [`spidev::Spidev`]: https://docs.rs/spidev/0.5 .0/spidev/struct.Spidev.html
221221pub struct Spidev ( pub spidev:: Spidev ) ;
222222
223223impl Spidev {
224224 /// See [`spidev::Spidev::open`][0] for details.
225225 ///
226- /// [0]: https://docs.rs/spidev/0.4 .0/spidev/struct.Spidev.html#method.open
226+ /// [0]: https://docs.rs/spidev/0.5 .0/spidev/struct.Spidev.html#method.open
227227 pub fn open < P > ( path : P ) -> io:: Result < Self >
228228 where
229229 P : AsRef < Path > ,
Original file line number Diff line number Diff line change 1- //! Implementation of [`Serial`](https://docs.rs/embedded-hal/0.2.1 /embedded_hal/serial/index.html)
1+ //! Implementation of [`Serial`](https://docs.rs/embedded-hal/0.2.6 /embedded_hal/serial/index.html)
22
33use std:: io:: { ErrorKind as IoErrorKind , Read , Write } ;
44use std:: path:: Path ;
Original file line number Diff line number Diff line change @@ -4,20 +4,20 @@ use std::path::Path;
44
55/// Newtype around [`sysfs_gpio::Pin`] that implements the `embedded-hal` traits
66///
7- /// [`sysfs_gpio::Pin`]: https://docs.rs/sysfs_gpio/0.5.1 /sysfs_gpio/struct.Pin.html
7+ /// [`sysfs_gpio::Pin`]: https://docs.rs/sysfs_gpio/0.6.0 /sysfs_gpio/struct.Pin.html
88pub struct SysfsPin ( pub sysfs_gpio:: Pin ) ;
99
1010impl SysfsPin {
1111 /// See [`sysfs_gpio::Pin::new`][0] for details.
1212 ///
13- /// [0]: https://docs.rs/sysfs_gpio/0.5.1 /sysfs_gpio/struct.Pin.html#method.new
13+ /// [0]: https://docs.rs/sysfs_gpio/0.6.0 /sysfs_gpio/struct.Pin.html#method.new
1414 pub fn new ( pin_num : u64 ) -> Self {
1515 SysfsPin ( sysfs_gpio:: Pin :: new ( pin_num) )
1616 }
1717
1818 /// See [`sysfs_gpio::Pin::from_path`][0] for details.
1919 ///
20- /// [0]: https://docs.rs/sysfs_gpio/0.5.1 /sysfs_gpio/struct.Pin.html#method.from_path
20+ /// [0]: https://docs.rs/sysfs_gpio/0.6.0 /sysfs_gpio/struct.Pin.html#method.from_path
2121 pub fn from_path < P > ( path : P ) -> sysfs_gpio:: Result < Self >
2222 where
2323 P : AsRef < Path > ,
You can’t perform that action at this time.
0 commit comments