User`s guide
Architecture
AT85C51SND3Bx Firmware User’s Guide 5-37
7691A–MP3–08/07
5.6 Modules
Atmel provides the system modules which permit to use the SND3 chip feature.
The modules are USB, player, recorder, viewer, power, explorer and update.
The USB modules offers its services to the MMI applications with the help of com-
mands/events or public routines. The following parts decribes the interfaces of each
module.
5.6.1 USB Interface
The USB module controls the USB device/host mode.
Table 5-12. USB commands
Table 5-13. USB events
Command Label Description
CMD_USB_START Enable the USB controller
CMD_USB_STOP Disable the USB controller
CMD_DEVICE_START Start the device mode
CMD_DEVICE_STOP Stop the device mode
CMD_HOST_START Start the Host mode
CMD_HOST_STOP Stop the Host mode
CMD_USB_FORCE_HIGH_SPEED Force high speed in USB device mode
Event Label Description
EVT_USB_CTRL_POWERED Voltage level on VBUS present
EVT_USB_CTRL_UNPOWERED Voltage level on VBUS not present
EVT_USB_DEVICE_START USB controller is entered in USB device mode
EVT_USB_DEVICE_STOP USB controller is exit of USB device mode
EVT_USB_DEVICE_ENUM_HIGH USB device mode enumerated in hight speed detected
EVT_USB_DEVICE_ENUM_FULL USB device mode enumerated in full speed detected
EVT_USB_DEVICE_SUSPEND Suspended state has been detected on USB bus
EVT_USB_DEVICE_WAKE_UP Wake-up state has been detected on USB bus
EVT_USB_DEVICE_RESUME Resume state has been detected on USB bus
EVT_USB_DEVICE_RESET Reset state has been detected on USB bus
EVT_USB_DEVICE_SEND USB device Class has sent data
EVT_USB_DEVICE_RECEIV USB device Class has received data
EVT_USB_DEVICE_MS_STARTED USB device Class mass storage has started
EVT_USB_HOST_START USB controller is entered in USB host mode
EVT_USB_HOST_EXIT USB controller is exit of USB host mode
EVT_USB_HOST_LIMITATION_HW USB host module can’t install new device because a
hardware limitation is detected (product limitation).
EVT_USB_HOST_LIMITATION_SW USB host module can’t install new device because a
software limitation is detected (change low configuration in
conf_usb.h).
EVT_USB_HOST_MS_CHANGE A Mass Storage device has been detected or disconnected.
EVT_USB_HOST_HUB_CHANGE A HUB device has been detected or disconnected.
EVT_USB_HOST_HID_CHANGE A HID device has been detected or disconnected.
EVT_USB_HOST_HID_MOUSE_BTN1 USB host has receiv a event “clic bouton 1” via a HID device.