Show / Hide Table of Contents

    Enum SpiMode

    Defines how data is synchronized between devices on a SPI bus. Clock Polarity (CPOL) determines if clock signal is low or high when in idle state. Clock Phase (CPHA) determines when data is sampled relative to the clock signal.

    Namespace: System.Device.Spi
    Assembly: System.Device.Spi.dll
    Syntax
    public enum SpiMode

    Fields

    Name Description
    Mode0

    CPOL 0, CPHA 0. Polarity is idled low and data is sampled on rising edge of the clock signal.

    Mode1

    CPOL 0, CPHA 1. Polarity is idled low and data is sampled on falling edge of the clock signal.

    Mode2

    CPOL 1, CPHA 0. Polarity is idled high and data is sampled on falling edge of the clock signal.

    Mode3

    CPOL 1, CPHA 1. Polarity is idled high and data is sampled on rising edge of the clock signal.

    Extension Methods

    LogDispatcher.GetCurrentClassLogger()
    • Improve this Doc
    • View Source
    Back to top Copyright © 2018 nanoFramework Contributors
    Generated by DocFX