C# 클래스 Emlid.WindowsIot.Hardware.Boards.Navio.NavioHardwareProvider

파일 보기 프로젝트 열기: emlid/Navio-SDK-Windows-IoT 1 사용 예제들

공개 메소드들

메소드 설명
ConnectGpio ( int controllerIndex, int pinNumber, GpioPinDriveMode driveMode = GpioPinDriveMode.Input, GpioSharingMode sharingMode = GpioSharingMode.Exclusive ) : Windows.Devices.Gpio.GpioPin

Connects to a GPIO pin if it exists.

ConnectI2c ( int controllerIndex, int address, I2cBusSpeed speed = I2cBusSpeed.FastMode, I2cSharingMode sharingMode = I2cSharingMode.Exclusive ) : Windows.Devices.I2c.I2cDevice

Connects to an I2C device if it exists.

ConnectSpi ( int controllerIndex, int chipSelectLine, int frequency, int bits, SpiMode mode, SpiSharingMode sharingMode = SpiSharingMode.Exclusive ) : Windows.Devices.Spi.SpiDevice

Connects to an SPI device if it exists.

Initialize ( ) : void

Configures the LightningProvider when enabled.

Not thread safe, must be called in a thread safe context.

메소드 상세

ConnectGpio() 공개 정적인 메소드

Connects to a GPIO pin if it exists.
public static ConnectGpio ( int controllerIndex, int pinNumber, GpioPinDriveMode driveMode = GpioPinDriveMode.Input, GpioSharingMode sharingMode = GpioSharingMode.Exclusive ) : Windows.Devices.Gpio.GpioPin
controllerIndex int Controller index.
pinNumber int Pin number.
driveMode GpioPinDriveMode Drive mode.
sharingMode GpioSharingMode Sharing mode.
리턴 Windows.Devices.Gpio.GpioPin

ConnectI2c() 공개 정적인 메소드

Connects to an I2C device if it exists.
public static ConnectI2c ( int controllerIndex, int address, I2cBusSpeed speed = I2cBusSpeed.FastMode, I2cSharingMode sharingMode = I2cSharingMode.Exclusive ) : Windows.Devices.I2c.I2cDevice
controllerIndex int Controller index.
address int Slave address.
speed I2cBusSpeed Bus speed.
sharingMode I2cSharingMode Sharing mode.
리턴 Windows.Devices.I2c.I2cDevice

ConnectSpi() 공개 정적인 메소드

Connects to an SPI device if it exists.
public static ConnectSpi ( int controllerIndex, int chipSelectLine, int frequency, int bits, SpiMode mode, SpiSharingMode sharingMode = SpiSharingMode.Exclusive ) : Windows.Devices.Spi.SpiDevice
controllerIndex int Controller index.
chipSelectLine int Slave Chip Select Line.
frequency int Frequency in Hz.
bits int Data length in bits.
mode SpiMode Communication mode, i.e. clock polarity.
sharingMode SpiSharingMode Sharing mode.
리턴 Windows.Devices.Spi.SpiDevice

Initialize() 공개 정적인 메소드

Configures the LightningProvider when enabled.
Not thread safe, must be called in a thread safe context.
public static Initialize ( ) : void
리턴 void