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 2
2
3
3
/// Newtype around [`gpio_cdev::LineHandle`] that implements the `embedded-hal` traits
4
4
///
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
6
6
pub struct CdevPin ( pub gpio_cdev:: LineHandle , bool ) ;
7
7
8
8
impl CdevPin {
9
9
/// See [`gpio_cdev::Line::request`][0] for details.
10
10
///
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
12
12
pub fn new ( handle : gpio_cdev:: LineHandle ) -> Result < Self , gpio_cdev:: errors:: Error > {
13
13
let info = handle. line ( ) . info ( ) ?;
14
14
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 {
117
117
118
118
/// Newtype around [`i2cdev::linux::LinuxI2CDevice`] that implements the `embedded-hal` traits
119
119
///
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
121
121
pub struct I2cdev {
122
122
inner : i2cdev:: linux:: LinuxI2CDevice ,
123
123
path : PathBuf ,
@@ -127,7 +127,7 @@ pub struct I2cdev {
127
127
impl I2cdev {
128
128
/// See [`i2cdev::linux::LinuxI2CDevice::new`][0] for details.
129
129
///
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
131
131
pub fn new < P > ( path : P ) -> Result < Self , i2cdev:: linux:: LinuxI2CError >
132
132
where
133
133
P : AsRef < Path > ,
@@ -217,13 +217,13 @@ impl ops::DerefMut for I2cdev {
217
217
218
218
/// Newtype around [`spidev::Spidev`] that implements the `embedded-hal` traits
219
219
///
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
221
221
pub struct Spidev ( pub spidev:: Spidev ) ;
222
222
223
223
impl Spidev {
224
224
/// See [`spidev::Spidev::open`][0] for details.
225
225
///
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
227
227
pub fn open < P > ( path : P ) -> io:: Result < Self >
228
228
where
229
229
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)
2
2
3
3
use std:: io:: { ErrorKind as IoErrorKind , Read , Write } ;
4
4
use std:: path:: Path ;
Original file line number Diff line number Diff line change @@ -4,20 +4,20 @@ use std::path::Path;
4
4
5
5
/// Newtype around [`sysfs_gpio::Pin`] that implements the `embedded-hal` traits
6
6
///
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
8
8
pub struct SysfsPin ( pub sysfs_gpio:: Pin ) ;
9
9
10
10
impl SysfsPin {
11
11
/// See [`sysfs_gpio::Pin::new`][0] for details.
12
12
///
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
14
14
pub fn new ( pin_num : u64 ) -> Self {
15
15
SysfsPin ( sysfs_gpio:: Pin :: new ( pin_num) )
16
16
}
17
17
18
18
/// See [`sysfs_gpio::Pin::from_path`][0] for details.
19
19
///
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
21
21
pub fn from_path < P > ( path : P ) -> sysfs_gpio:: Result < Self >
22
22
where
23
23
P : AsRef < Path > ,
You can’t perform that action at this time.
0 commit comments