SmartGPU2-LCD480X320Touch-CommandSet

SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 74
2.6.3 Set Frame Video SD 46hex - F ascii
Commands (host)
4 bytes
1.- 0x56 (hex), V (ascii). *Video Command.
2.- 0x46 (hex), F (ascii).
3.- Frame to Set high byte.
8.- Frame to Set low byte.
Responses (device)
1 byte
1.- 0x4F (hex), O (ascii) success ACK or
0x46 (hex), F (ascii) fail NAK.
Description
This command advances-rewinds a video
previously allocated on the SmartGPU 2 buffer, the
parameter Frame to Set will set the desired frame
to start when a “Play Video SD” command is
called.
If Frame to set parameter is sent as 0(dec), it
means the video will play from the frame 0 or
beginning.
The maximum acceptable value of Frame to Set
parameter is the total video frames - 1.
If the Frame to Set parameter exceeds Total
Video Frames 1 obtained with “Allocate Video
SD”, the command will fail with NAK as response.
Example (sent commands)
Example 1:
<56,46,00,64> Set the frame start position to
100(dec) for the next “play Video SD” command
(advances video to frame 100).
Example 2:
<56,46,00,00> Set the frame start position to
0(dec) for the next “play Video SD” command
(rewinds video to frame 0).
All data is in hex.