Atmel AT83SND2C MP3 User Manual

Page 25

Advertising
background image

Communication Protocol

AT83SND2CMP3 User Guide

3-21

7525A–MP3–07/05

Example 2 Figure 3-7 . Example: Transfer a File From Player to Remote Controller

The FS_READ_BLOCK read the file until the end of the sector size in memory. To know
the total file size, the Remote Controller shall send the FS_GETFILE_SIZE command.

C o n tro lle r

P la ye r

T ra n s fe rin g A F ile

F ro m P la ye r to

R e m o te C o n tro lle r

F S _ G E T N A M E

F S _ N A M E (F ile N a m e )

F S _ F R E A D _B LO C K

F S _ F R E A D _ B L O C K

_ D A T A (B lo c k )

P la y e r re a d a n d s e n d

th e firs t b lo c k o f d a ta .

F S _ F R E A D _B LO C K

F S _ F R E A D _ B L O C K

_ D A T A _ E N D (N o D

a ta )

E n d o f file re a c h e d .

F ile is c lo s e d . N o

n e e d to s e n d th e

F S _ F C L O S E fra m e .

Advertising