Treehopper Java API
io.treehopper.enums.SpiMode Enum Reference

Defines the clock phase and polarity used by the SPI peripheral. More...

Public Member Functions

 SpiMode (byte modeRegisterValue)
 
byte getModeRegisterValue ()
 

Public Attributes

 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...
 

Detailed Description

Defines the clock phase and polarity used by the SPI peripheral.

Constructor & Destructor Documentation

◆ SpiMode()

io.treehopper.enums.SpiMode.SpiMode ( byte  modeRegisterValue)

Member Function Documentation

◆ getModeRegisterValue()

byte io.treehopper.enums.SpiMode.getModeRegisterValue ( )

Member Data Documentation

◆ 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: