File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,10 @@ use std::path::Path;
10
10
11
11
/// Newtype around [`spidev::Spidev`] that implements the `embedded-hal` traits
12
12
///
13
+ /// [Delay operations][delay] are capped to 65535 microseconds.
14
+ ///
13
15
/// [`spidev::Spidev`]: https://docs.rs/spidev/0.5.2/spidev/struct.Spidev.html
16
+ /// [delay]: embedded_hal::spi::Operation::DelayUs
14
17
pub struct Spidev ( pub spidev:: Spidev ) ;
15
18
16
19
impl Spidev {
@@ -79,6 +82,12 @@ mod embedded_hal_impl {
79
82
}
80
83
81
84
impl SpiDevice for Spidev {
85
+ ///Perform a transaction against the device. [Read more][transaction]
86
+ ///
87
+ /// [Delay operations][delay] are capped to 65535 microseconds.
88
+ ///
89
+ /// [transaction]: SpiDevice::transaction
90
+ /// [delay]: SpiOperation::DelayUs
82
91
fn transaction (
83
92
& mut self ,
84
93
operations : & mut [ SpiOperation < ' _ , u8 > ] ,
You can’t perform that action at this time.
0 commit comments