Polarity

SCPI Command :

BUS<*>:I2S:WSELect:POLarity
Commands in total: 1
Subgroups: 0
Direct child commands: 1
get(bus=Bus.Default) BusDataSignalPolarity[source]
# BUS<*>:I2S:WSELect:POLarity
value: enums.BusDataSignalPolarity = driver.bus.i2S.wselect.polarity.get(bus = repcap.Bus.Default)

For a word select line, the polarity defines the signal values assigned to the left and right channels. For an FSYNC line (TDM) , the polarity defines the edge of the FSYNC pulse that identifies the beginning of a frame.

Parameters:

bus – optional repeated capability selector. Default value: Nr1 (settable in the interface ‘Bus’)

Returns:

ws_polarity: NORMal: 0 = left, 1 = right channel; or rising edge for TDM INVert: 1= left, 0 = right channel; or falling edge for TDM

set(ws_polarity: BusDataSignalPolarity, bus=Bus.Default) None[source]
# BUS<*>:I2S:WSELect:POLarity
driver.bus.i2S.wselect.polarity.set(ws_polarity = enums.BusDataSignalPolarity.INVert, bus = repcap.Bus.Default)

For a word select line, the polarity defines the signal values assigned to the left and right channels. For an FSYNC line (TDM) , the polarity defines the edge of the FSYNC pulse that identifies the beginning of a frame.

Parameters:
  • ws_polarity – NORMal: 0 = left, 1 = right channel; or rising edge for TDM INVert: 1= left, 0 = right channel; or falling edge for TDM

  • bus – optional repeated capability selector. Default value: Nr1 (settable in the interface ‘Bus’)