SpiBus

Description

The SpiBus object represents an SPI bus with attached SpiDevice objects. This abstract base object provides common properties and methods only. Use a dedicated SPI bus implementation such as SystemSpiBus.

This object was introduced in InCore 2.8.

› Inherits:

Object

› Inherited by:

SystemSpiBus

Overview

Properties

Methods

Signals

Enumerations

Properties

bitsPerWord

This property holds the number of bits per word to use for transfers on the bus.

› Type:

SignedInteger

› Default:

16

› Signal:

bitsPerWordChanged()

› Attributes:

Writable

devices

This property holds a list of Spi devices to use on this bus.

› Type:

List<SpiDevice>

› Signal:

devicesChanged()

› Attributes:

Readonly

mode

This property holds the SPI mode to use for transfers on the bus.

› Type:

Mode

› Default:

SpiBus.Mode0

› Signal:

modeChanged()

› Attributes:

Writable

speed

This property holds the desired communication speed in Hz.

› Type:

UnsignedInteger

› Default:

1000000

› Signal:

speedChanged()

› Attributes:

Writable

Signals

devicesDataChanged(SignedInteger index)

This signal is emitted whenever the List.dataChanged() signal is emitted, i.e. the item at index in the devices list itself emitted the dataChanged() signal.

Enumerations

Mode

Name

Value

Description

SpiBus.Mode0

0

SpiBus.Mode1

1

SpiBus.Mode2

2

SpiBus.Mode3

3