Defines the clock phase and polarity used by the SPI peripheral.
More...
|
| | Mode00 =((byte) 0x00) |
| | Clock is initially low; data is valid on the rising edge of the clock. More...
|
| |
| | Mode01 =((byte) 0x20) |
| | Clock is initially low; data is valid on the falling edge of the clock. More...
|
| |
| | Mode10 =((byte) 0x10) |
| | Clock is initially high; data is valid on the rising edge of the clock. More...
|
| |
| | Mode11 =((byte) 0x30) |
| | Clock is initially high; data is valid on the falling edge of the clock. More...
|
| |
Defines the clock phase and polarity used by the SPI peripheral.
◆ SpiMode()
| io.treehopper.enums.SpiMode.SpiMode |
( |
byte |
modeRegisterValue | ) |
|
◆ getModeRegisterValue()
| byte io.treehopper.enums.SpiMode.getModeRegisterValue |
( |
| ) |
|
◆ Mode00
| io.treehopper.enums.SpiMode.Mode00 =((byte) 0x00) |
Clock is initially low; data is valid on the rising edge of the clock.
◆ Mode01
| io.treehopper.enums.SpiMode.Mode01 =((byte) 0x20) |
Clock is initially low; data is valid on the falling edge of the clock.
◆ Mode10
| io.treehopper.enums.SpiMode.Mode10 =((byte) 0x10) |
Clock is initially high; data is valid on the rising edge of the clock.
◆ Mode11
| io.treehopper.enums.SpiMode.Mode11 =((byte) 0x30) |
Clock is initially high; data is valid on the falling edge of the clock.
The documentation for this enum was generated from the following file:
- F:/Git/treehopper-sdk/Java/api/treehopper/src/main/java/io/treehopper/enums/SpiMode.java