Q-Code User Manual
Ver. 7.0 2021/11/30
174
NY7 supports 0 ~ 4; n=0 means mute, n=4 means the loudest volume.
Note: NY4 / NY5 / NY5+ / NY6A / NY9T / NX1 do not support this command.
Ex.
SPIVol = 3
; Set the SPI volume as 3rd level.
Ex.
SPIVol = R0
; Access the parameter of R0 as SPI volume level.
4.8.7 Ri = SPIVol
Get the volume of SPIPlay.
Note: NY4 / NY5 / NY5+ / NY6A / NY9T / NX1 do not support the command.
Ex.
R0 = SPIVol
; Get the SPI playback volume and save to R0.
4.8.8 SPIGetIndex
Read the number of sentences in SPI Flash, which is equivalent to Sentence No in SPI_Encoder.
SPIGetIndex(Result{, SPIGroup})
Result:
number of file index in SPI Flash.
NY6 / NY7 supports 4 4-bit registers, Rl:Rk:Rj:Ri or 2 8-bit registers, Xj:Xi. Ri=bit0~3,
Rj=bit4~7, Rk=bit8~11, Rl=bit12~15 / Xi=bit0~7, Xj=bit8~15 (
NY6 / NY7 Only
).
16-bit variable (
NX1 Only
).
SPIGroup:
specify the accessed interface of SPI.
NY6 / NX1 do not support the specified SPIGroup.
NY7 can be either SPI1 or SPI2; the default is SPI1 if omitted.
Note: NY4 / NY5 / NY5+ / NY6A / NY9T do not support this command.
Ex.
SPIGetIndex(R1:R0)
; Read the sentence no in first SPI.
Ex.
SPIGetIndex(R2:R1:R0, SPI2)
;
Read the sentence no in second SPI.
Ex
SPIGetIndex(X0)
; Read the sentence no in first SPI.
Ex.
SPIGetIndex(X1:X0, SPI2)
;
Read the sentence no in second SPI.
4.9 SPI Flash Command
SPI Flash Command
-
-
-
Note:
1. Please make sure SPI Flash is in readable / writable state before executing any commands