@@ -9,7 +9,7 @@ pub use embedded_hal::spi::{
9
9
/// `SpiDevice` represents ownership over a single SPI device on a (possibly shared) bus, selected
10
10
/// with a CS (Chip Select) pin.
11
11
///
12
- /// See ( the docs on embedded-hal)[ embedded_hal::spi] for important information on SPI Bus vs Device traits.
12
+ /// See [ the docs on embedded-hal]( embedded_hal::spi) for important information on SPI Bus vs Device traits.
13
13
pub trait SpiDevice < Word : Copy + ' static = u8 > : ErrorType {
14
14
/// Perform a transaction against the device.
15
15
///
@@ -108,21 +108,21 @@ impl<Word: Copy + 'static, T: SpiDevice<Word> + ?Sized> SpiDevice<Word> for &mut
108
108
///
109
109
/// `SpiBus` represents **exclusive ownership** over the whole SPI bus, with SCK, MOSI and MISO pins.
110
110
///
111
- /// See ( the docs on embedded-hal) [embedded_hal::spi] for important information on SPI Bus vs Device traits.
111
+ /// See [ the docs on embedded-hal] [embedded_hal::spi] for important information on SPI Bus vs Device traits.
112
112
pub trait SpiBus < Word : ' static + Copy = u8 > : ErrorType {
113
113
/// Read `words` from the slave.
114
114
///
115
115
/// The word value sent on MOSI during reading is implementation-defined,
116
116
/// typically `0x00`, `0xFF`, or configurable.
117
117
///
118
118
/// Implementations are allowed to return before the operation is
119
- /// complete. See ( the docs on embedded-hal) [embedded_hal::spi] for details on flushing.
119
+ /// complete. See [ the docs on embedded-hal] [embedded_hal::spi] for details on flushing.
120
120
async fn read ( & mut self , words : & mut [ Word ] ) -> Result < ( ) , Self :: Error > ;
121
121
122
122
/// Write `words` to the slave, ignoring all the incoming words.
123
123
///
124
124
/// Implementations are allowed to return before the operation is
125
- /// complete. See ( the docs on embedded-hal) [embedded_hal::spi] for details on flushing.
125
+ /// complete. See [ the docs on embedded-hal] [embedded_hal::spi] for details on flushing.
126
126
async fn write ( & mut self , words : & [ Word ] ) -> Result < ( ) , Self :: Error > ;
127
127
128
128
/// Write and read simultaneously. `write` is written to the slave on MOSI and
@@ -135,20 +135,20 @@ pub trait SpiBus<Word: 'static + Copy = u8>: ErrorType {
135
135
/// typically `0x00`, `0xFF`, or configurable.
136
136
///
137
137
/// Implementations are allowed to return before the operation is
138
- /// complete. See ( the docs on embedded-hal) [embedded_hal::spi] for details on flushing.
138
+ /// complete. See [ the docs on embedded-hal] [embedded_hal::spi] for details on flushing.
139
139
async fn transfer ( & mut self , read : & mut [ Word ] , write : & [ Word ] ) -> Result < ( ) , Self :: Error > ;
140
140
141
141
/// Write and read simultaneously. The contents of `words` are
142
142
/// written to the slave, and the received words are stored into the same
143
143
/// `words` buffer, overwriting it.
144
144
///
145
145
/// Implementations are allowed to return before the operation is
146
- /// complete. See ( the docs on embedded-hal) [embedded_hal::spi] for details on flushing.
146
+ /// complete. See [ the docs on embedded-hal] [embedded_hal::spi] for details on flushing.
147
147
async fn transfer_in_place ( & mut self , words : & mut [ Word ] ) -> Result < ( ) , Self :: Error > ;
148
148
149
149
/// Wait until all operations have completed and the bus is idle.
150
150
///
151
- /// See ( the docs on embedded-hal) [embedded_hal::spi] for information on flushing.
151
+ /// See [ the docs on embedded-hal] [embedded_hal::spi] for information on flushing.
152
152
async fn flush ( & mut self ) -> Result < ( ) , Self :: Error > ;
153
153
}
154
154
0 commit comments