Treehopper C++ API
SpiMode.h
Go to the documentation of this file.
1 #pragma once
2 namespace Treehopper {
10  enum class SpiMode {
14  Mode00 = 0x00,
15 
19  Mode01 = 0x20,
20 
24  Mode10 = 0x10,
25 
29  Mode11 = 0x30
30  };
31 }
Clock is initially high; data is valid on the falling edge of the clock
SpiMode
Defines the clock phase and polarity used for SPI communication.
Definition: SpiMode.h:10
Clock is initially low; data is valid on the rising edge of the clock
Definition: AdcPin.h:3
Clock is initially high; data is valid on the rising edge of the clock
Clock is initially low; data is valid on the falling edge of the clock