User`s guide

Architecture
AT85C51SND3Bx Firmware User’s Guide 5-41
7691A–MP3–08/07
5.6.5 Power Interface
The Power module controls the power management of the device:
automatically jumps in idle mode to reduce power consumption,
provides battery level information,
provides power-off control,
provides alarm mechanism on a specified low battery level.
Table 5-21. Power commands
Table 5-22. Power events
5.6.6 Explorer Interface
The Explorer module is basically the entry point to the file system and proposes the fol-
lowing services:
Drive/Partition navigation and control (mount, format, get space...)
directory navigation and control (cd, setcwd, deldir, mkdir, getcwd…)
file list (= files in directory) navigation (next, previous, search...)
file list control (get size, create, rename, delete, …)
file list I/O (getc, putc, read_buf, ...)
copy/paste file
playlist management (open, create, mdoification, ...)
explorer API to permit a simple filter navigation :
in disk, directory only, directory and subdirectory, playlist
the feature is previous, next, repeat, random
Command Label Description Returned Events
CMD_POWER_OFF Turn the power off (CPU and peripherals stopped). Exit from this
hardware state by any key pressed.
CMD_AUTO_POWER_OFF_ENABLE Enable to turn power off automatically when no key pressed during a
well-defined time (see Section 6.2.11)
CMD_AUTO_POWER_OFF_DISABLE Disable the auto power off
CMD_BATTERY_CHARGE_ENABLE Enable battery charging
CMD_BATTERY_CHARGE_DISABLE Disable battery charging
CMD_GET_VBUS_STATE Test if there is power on the USB EVT_POWER_VBUS_STATE
with boolean state
CMD_POWER_SETTING_LOADED Initialize the power off timeout with the value present in setting data.
Note: Execute this command after setting init or load.
Event Label Description
EVT_POWER_ON The chip must restart after a power-down mode executed by command CMD_POWER_OFF.
EVT_BATTERY_CHARGING Signal battery charging activation or disactivation (status in parameter)
EVT_BATTERY_LEVEL Return the battery charge level with the help of the parameter formatted as follows: LSB(U16) = 8-bit
battery charge level
Periodically sent according to the configuration (see Section 6.2.11)
EVT_BATTERY_LEVEL_ALERT Signals that the battery charge level is low
EVT_POWER_VBUS_STATE Give the VBUS state after a VBUS change or command CMD_GET_VBUS_STATE
EVT_BACKLIGHT_OFF Signal that backlight is disabled.
Note: This event is sent by lcd module.
EVT_POWER_ENTER_IN_POWEROFF Inform that chip have no activity and may be set in power off.