Function File: struct = get (spi)
Function File: field = get (spi, property)

Get the properties of spi object.

Inputs

spi - instance of octave_spi class.

property - name of property.

Properties

’name’

Name for the spi socket.

’bitrate’

The bitrate for the spi object.

’clockpolarity’

The clock polarity for the spi object of ’idlehigh’ or ’idlelow’.

’clockphase’

The clock phase for the spi object of ’firstedge’ or ’secondedge’.

’port’

The device port name.

’status’

The device status of ’open’ or ’closed’

Outputs

When property was specified, return the value of that property.
otherwise return the values of all properties as a structure.

See also: @@octave_spi/set.

Package: instrument-control