@@ -9,7 +9,7 @@ pub use embedded_hal::spi::{
99/// `SpiDevice` represents ownership over a single SPI device on a (possibly shared) bus, selected
1010/// with a CS (Chip Select) pin.
1111///
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.
1313pub trait SpiDevice < Word : Copy + ' static = u8 > : ErrorType {
1414 /// Perform a transaction against the device.
1515 ///
@@ -108,21 +108,21 @@ impl<Word: Copy + 'static, T: SpiDevice<Word> + ?Sized> SpiDevice<Word> for &mut
108108///
109109/// `SpiBus` represents **exclusive ownership** over the whole SPI bus, with SCK, MOSI and MISO pins.
110110///
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.
112112pub trait SpiBus < Word : ' static + Copy = u8 > : ErrorType {
113113 /// Read `words` from the slave.
114114 ///
115115 /// The word value sent on MOSI during reading is implementation-defined,
116116 /// typically `0x00`, `0xFF`, or configurable.
117117 ///
118118 /// 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.
120120 async fn read ( & mut self , words : & mut [ Word ] ) -> Result < ( ) , Self :: Error > ;
121121
122122 /// Write `words` to the slave, ignoring all the incoming words.
123123 ///
124124 /// 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.
126126 async fn write ( & mut self , words : & [ Word ] ) -> Result < ( ) , Self :: Error > ;
127127
128128 /// 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 {
135135 /// typically `0x00`, `0xFF`, or configurable.
136136 ///
137137 /// 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.
139139 async fn transfer ( & mut self , read : & mut [ Word ] , write : & [ Word ] ) -> Result < ( ) , Self :: Error > ;
140140
141141 /// Write and read simultaneously. The contents of `words` are
142142 /// written to the slave, and the received words are stored into the same
143143 /// `words` buffer, overwriting it.
144144 ///
145145 /// 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.
147147 async fn transfer_in_place ( & mut self , words : & mut [ Word ] ) -> Result < ( ) , Self :: Error > ;
148148
149149 /// Wait until all operations have completed and the bus is idle.
150150 ///
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.
152152 async fn flush ( & mut self ) -> Result < ( ) , Self :: Error > ;
153153}
154154
0 commit comments