RaspberryPiBoard Class

Definition

Raspberry Pi specific board implementation. Contains all the knowledge about which pins can be used for what purpose.

public class RaspberryPiBoard : Iot.Device.Board.GenericBoard
type RaspberryPiBoard = class
    inherit GenericBoard
Public Class RaspberryPiBoard
Inherits GenericBoard
Inheritance

Constructors

RaspberryPiBoard()

Creates an instance of a Rasperry Pi board.

Properties

ConfigurationFile

Gets or sets the path to the configuration file for Raspberry PI.

DefaultPinNumberingScheme

The default pin numbering scheme for this board.

(Inherited from Board)
Disposed

True if this instance is disposed. Any attempt to use it after this becomes true results in undefined behavior.

(Inherited from Board)
Initialized

True if the board instance is initialized

(Inherited from Board)
PinCount

Number of pins of the board

Methods

ActivatePinMode(Int32, PinUsage)

Switches a pin to a certain alternate mode. (ALTn mode)

CreateGpioController()

Return an instance of a GpioController for the current board

(Inherited from Board)
CreateI2cBusCore(Int32, Int32[])

Create an instance of an I2C bus in a derived class

(Inherited from GenericBoard)
CreateI2cDevice(I2cConnectionSettings)

Create an I2C device instance on a default bus.

(Inherited from Board)
CreateOrGetI2cBus(Int32)

Create an I2C bus instance or return the existing instance for this bus

(Inherited from Board)
CreateOrGetI2cBus(Int32, Int32[])

Create an I2C bus instance or return the existing instance for this bus

(Inherited from Board)
CreatePwmChannel(Int32, Int32, Int32, Double)

Creates a PWM channel for the default pin assignment

(Inherited from Board)
CreatePwmChannel(Int32, Int32, Int32, Double, Int32, PinNumberingScheme)

Creates a PWM channel

(Inherited from Board)
CreateSimplePwmChannel(Int32, Int32, Int32, Double)

Overriden by derived implementations to provide the PWM device

(Inherited from GenericBoard)
CreateSimpleSpiDevice(SpiConnectionSettings, Int32[])

Overriden by derived implementations to create the base SPI device.

(Inherited from GenericBoard)
CreateSpiDevice(SpiConnectionSettings)

Create an SPI device instance

(Inherited from Board)
CreateSpiDevice(SpiConnectionSettings, Int32[], PinNumberingScheme)

Create an SPI device instance

(Inherited from Board)
DetermineCurrentPinUsage(Int32)

Gets the current alternate pin mode. (ALTn mode)

Dispose() (Inherited from Board)
Dispose(Boolean) System.MarshalByRefObject.Dispose(System.Boolean)
GetDefaultI2cBusNumber()

Creates the default I2C bus for this board or returns the existing bus

GetDefaultPinAssignmentForI2c(Int32)

Overriden by derived classes: Provides the default pin assignment for the given I2C bus

GetDefaultPinAssignmentForPwm(Int32, Int32)

Overriden by derived class. Provides the default pin for a given channel.

GetDefaultPinAssignmentForSpi(SpiConnectionSettings)

Overriden by derived classes: Provides the default pin assignment for the given SPI bus

GetOverlayPinAssignmentForI2c(Int32)

Gets the overlay pin assignment for I2C.

GetOverlayPinAssignmentForPwm(Int32)

Gets the overlay pin assignment for Pwm.

GetOverlayPinAssignmentForSpi(SpiConnectionSettings)

Gets the overlay pin assignment for Spi.

Initialize()

Initializes this instance

IsI2cActivated()

Checks if the I2C overlay is activated in the configuraztion file.

IsPwmActivated()

Checks if the I2C overlay is activated in the configuraztion file.

IsSpiActivated()

Checks if the SPI overlay is activated in the configuraztion file.

QueryComponentInformation()

Query information about a component and its children.

QueryComponentInformation()

Query information about a component and its children.

(Inherited from Board)
ReleasePin(Int32, PinUsage, Object)

Removes the reservation for a pin. See ReservePin(Int32, PinUsage, Object) for details.

(Inherited from Board)
ReservePin(Int32, PinUsage, Object)

Reserves a pin for a specific usage. This is done automatically if a known interface (i.e. GpioController) is used to open the pin, but may be used to block a pin explicitly, i.e. for UART.

(Inherited from Board)
TryCreateBestGpioDriver()

Tries to create the best possible GPIO driver for this hardware.

Applies to