Instrument-control Toolkit - @octave_spi/set
- Function File:
set
(obj,property,value)
- Function File:
set
(obj,property,value,…)
Set the properties of spi object.
Inputs
obj - instance of octave_spi class.
property - name of property.
If property is a cell so must be value, it sets the values of all matching properties.
The function also accepts property-value pairs.
Properties
- ’name’
Set the name for the spi socket.
- ’bitrate’
Set the bitrate for the spi object.
- ’clockpolarity’
Set the clock polarity for the spi object of ’idlehigh’ or ’idlelow’.
- ’clockphase’
Set the clock phase for the spi object of ’firstedge’ or ’secondedge’.
Outputs
None
See also: @@octave_spi/get.