User`s guide

Architecture
5-40 AT85C51SND3Bx Firmware User’s Guide
7691A–MP3–08/07
Table 5-18. Recorder public routines
5.6.4 Viewer Interface
The Viewer module takes controls the picture decoder features of the chip:
it interfaces the decoder processor
it manages the decoding of picture files (start, stop)
The viewer module does not include a command.
Table 5-19. Viewer events
Table 5-20. Viewer public routines
Routines Description
record_on() Initialize the record with:
- microphone or line-in as input.
- current file selected on current file system navigator.
record_off() Stop the recording and close file
record_start() Start the recording
record_gettime() Get the recording time
recorder_task_start() Enable recorder task (it must be call after record_start() successfull)
recorder_task_stop() Disable recorder task (it must be call after record_off() successfull)
Events Description
EVT_VIEWER_EOF End of picture decoding.
Note: viewer_task_stop() is automaticly executed.
EVT_VIEWER_FAIL Error during picture decoding.
Note: viewer_task_stop() is automaticly executed.
EVT_VIEWER_ERR_ACCESS_FILE Error during access file
Note: viewer_task_stop() is automaticly executed.
Routines Description
viewer_set_width() Set the width of the viewer display area.
Note: initialization mandatory before call viewer_on()
viewer_set_height() Set the height of the viewer display area.
Note: initialization mandatory before call viewer_on()
viewer_set_x0() Set the x0 of the viewer display area.
Note: initialization mandatory before call viewer_on()
viewer_set_y0() Set the y0 of the viewer display area.
Note: initialization mandatory before call viewer_on()
viewer_config() Config the viewer.
Note: initialization mandatory before call viewer_on()
viewer_on() Start the picture file decoding. Use the current file selected on current
file system navigator.
viewer_off() Stop the recording and close file
viewer_task_start() Enable viewer task (it must be call after viewer_on() successfull)
viewer_task_stop() Disable viewer task (it must be call after viewer_off() successfull)