@@ -11,8 +11,8 @@ use std::path::Path;
11
11
12
12
/// Spidev wrapper providing the embedded-hal [`SpiDevice`] trait.
13
13
///
14
- /// Use this struct when you want a single spidev device, using a Linux-managed CS pin,
15
- /// which is already defined in your devicetree . Linux will handle sharing the bus
14
+ /// Use this struct when you want a single spidev device, using a Linux-managed CS (chip-select) pin,
15
+ /// which is already defined in your device tree . Linux will handle sharing the bus
16
16
/// between different SPI devices, even between different processes.
17
17
///
18
18
/// You get an object that implements [`SpiDevice`], which is what most drivers require,
@@ -34,23 +34,23 @@ pub struct SpidevDevice(pub spidev::Spidev);
34
34
/// Spidev wrapper providing the embedded-hal [`SpiBus`] trait.
35
35
///
36
36
/// Use this struct when you require direct access to the underlying SPI bus, for
37
- /// example when you want to use GPIOs as software-controlled CS pins to share the
37
+ /// example when you want to use GPIOs as software-controlled CS (chip-select) pins to share the
38
38
/// bus with multiple devices, or because a driver requires the entire bus (for
39
39
/// example to drive smart LEDs).
40
40
///
41
41
/// Do not use this struct if you're accessing SPI devices that already appear in your
42
- /// device tree; you will not be able to drive CS pins that are already used by spidev
42
+ /// device tree; you will not be able to drive CS pins that are already used by ` spidev`
43
43
/// as GPIOs. Instead use [`SpidevDevice`].
44
44
///
45
45
/// This struct must still be created from a [`spidev::Spidev`] device, but there are two
46
46
/// important notes:
47
47
///
48
- /// 1. The CS pin associated with this spidev device will be driven whenever any device accesses
48
+ /// 1. The CS pin associated with this ` spidev` device will be driven whenever any device accesses
49
49
/// this bus, so it should be an unconnected or unused pin.
50
- /// 2. No other spidev device on the same bus may be used as long as this `SpidevBus` exists,
50
+ /// 2. No other ` spidev` device on the same bus may be used as long as this `SpidevBus` exists,
51
51
/// as Linux will _not_ do anything to ensure this bus has exclusive access.
52
52
///
53
- /// It is recommended to use a dummy spidev device associated with an unused CS pin, and then use
53
+ /// It is recommended to use a dummy ` spidev` device associated with an unused CS pin, and then use
54
54
/// regular GPIOs as CS pins if required. If you are planning to share this bus using GPIOs, the
55
55
/// [`embedded-hal-bus`] crate may be of interest.
56
56
///
0 commit comments