available spi0, spi1
clk, miso, mosi are optional, but at least one are required
path |
type |
conditions |
description |
spiX.mode |
string |
|
|
spiX.clk |
pinSetting |
|
|
spiX.mosi |
pinSetting |
|
|
spiX.miso |
pinSetting |
|
|
spiX.clock |
integer |
- required
- 1 ≤ value ≤ 26000000
|
|
// Json Example
[
{
"spi0": {
"mode": "master",
"clk": 0,
"mosi": 1,
"miso": 2,
"clock": 115200
}
}
]
path |
type |
conditions |
description |
spiX |
null |
|
|
// Json Example
[
{
"spi0": null
}
]
Related item
path |
type |
conditions |
description |
spiX.data |
dataArray1024 |
|
|
spiX.read |
boolean |
|
If false, write without receive |
// Json Example
[
{
"spi0": {
"data": [100, 255, 21, 0, 21],
"read": true
}
}
]
response: read
path |
type |
conditions |
description |
spiX.data |
dataArray |
|
|
//Response Example
[
{
"spi0": {
"data": [16, 34, 242]
}
}
]
type defines
type |
conditions |
examples |
description |
array |
|
[16, 34, 242] [100, 255, 21, 0, 21]
|
Binary data array. |
type |
conditions |
examples |
description |
array |
|
|
|
type |
conditions |
examples |
description |
integer |
|
|
|