SmartWAV2-SerialMode_R1

SMARTWAV 2
Serial Mode
Vizic Technologies ©2020 | 61
7.22 Get Bits per Sample - 0x4F, 0x49hex - ‘O, ‘I’ ascii
Commands (host)
byte(s)
1.- 0x4F (hex), O (ascii).
2.- Channel 0x00 to 0x0D (hex), 0-13 (ascii).
3.- 0x49 (hex), I (ascii).
Responses (device)
byte(s)
1.- 0x08 (hex) for 8 bit or
0x10 (hex) for 16 bit.
2.- 0x4F (hex), O (ascii) - Success ACK or
0x46 (hex), F (ascii) - Fail NAK.
Description
This command asks for the audio bits per
sample of the track mounted track in the
received channel (0-13).
.wav files could only be 8 or 16 bits per
sample.
A track must be already mounted in the
selected channel for this command to work.
Examples (sent and
received commands)
Example 1:
Sent data:
-4F,02,49- Ask for the bits per sample of track
in channel 2.
Received data:
-08,4F- Track is 8 bps, OK.
Example 1:
Sent data:
-4F,05,49- Ask for the bits per sample of track
in channel 5.
Received data:
-10,4F- Track is 16 bps, OK.
*All data is in hex.