You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libraries/SPI/README.md
+8-6
Original file line number
Diff line number
Diff line change
@@ -7,10 +7,6 @@ User have 2 possibilities about the management of the CS pin:
7
7
* the CS pin is managed directly by the user code before to transfer the data (like the Arduino SPI library)
8
8
* the user uses a hardware CS pin linked to the SPI peripheral
9
9
10
-
### New SPISetting parameter
11
-
12
-
*`noReceive`: value can be `SPI_TRANSMITRECEIVE` or `SPI_TRANSMITONLY`. It allows to skip receive data after transmitting. Default `SPI_TRANSMITRECEIVE`.
13
-
14
10
### New API functions
15
11
16
12
*`SPIClass::SPIClass(uint8_t mosi, uint8_t miso, uint8_t sclk, uint8_t ssel)`: alternative class constructor
@@ -39,10 +35,15 @@ void setup() {
39
35
}
40
36
```
41
37
38
+
### Extended API
39
+
40
+
* All `transfer()` API's have a new bool argument `skipReceive`. It allows to skip receive data after transmitting. Value can be `SPI_TRANSMITRECEIVE` or `SPI_TRANSMITONLY`. Default `SPI_TRANSMITRECEIVE`.
41
+
42
42
#### Change default `SPI` instance pins
43
43
It is also possible to change the default pins used by the `SPI` instance using above API:
44
44
45
-
[[/img/Warning-icon.png|alt="Warning"]] **Have to be called before `begin()`.**
45
+
> [!WARNING]
46
+
> **Have to be called before `begin()`.**
46
47
47
48
* `void setMISO(uint32_t miso)`
48
49
* `void setMOSI(uint32_t mosi)`
@@ -53,7 +54,8 @@ It is also possible to change the default pins used by the `SPI` instance using
53
54
* `void setSCLK(PinName sclk)`
54
55
* `void setSSEL(PinName ssel)`
55
56
56
-
**_Note 1_** Using `setSSEL()` allows to enable hardware CS pin management linked to the SPI peripheral.
57
+
> [!NOTE]
58
+
> Using `setSSEL()` allows to enable hardware CS pin management linked to the SPI peripheral.
0 commit comments