Renesas USB Device
USB Host Mass Storage Class Driver(HMSC)
R01AN0513EJ0110 Rev.1.10
Page 43 of 55
Aug 10, 2011
Operating Mode and Switch Status are as follows.
T
able 8.1 Operating Mode and Switch Status
8.2 Application
Task
(
usb_hmsc_Task Function
)
Registration
For the µITRON version, register the application task in the configuration file.
For the non-OS version, see
Renesas USB device USB Basic Firmware User’s Manual
for information on registering
the application task.
Once the application task is registered as indicated above, the class checking function (table 5.3, R_usb_hmsc_Check
()) is called when the MSC device is attached. If the processing result is OK, the open function
(R_usb_hmsc_DriveOpen function()) is called and the application task starts.
When the MSC device is detached, the close function (R_usb_hmsc_DriveClose()) is called.
The HMSC registration API (R_usb_hmsc_Registration function) is used to register the open function. For details of the
HMSC registration API, see table5.17. The HMSC registration API should be called in the initialization processing
(usb_hmsc_MainInit function) of the main processing task (usb_cstd_MainTask function).
8.3
APL Global Area
Table 8.3 shows the global area used by APL.
Table 8.2 APL Global Area Listing
Type
Variable
Description
1 uint16_t
usb_shmsc_DriveOpenSeq
Sequence control of drive open processing
of APL
2 uint16_t
usb_shmsc_SmpAplProcess
Specify
processing executed from lower
layer after callback
3 uint16_t
usb_ghmsc_TransferStop
Control the file operation switch
Switch number used on
Evaluation Board
Switch label
Operation
RX62N-RSK
File operation switch
Press SW(File operation switch) on
RX62N RSK ,Write process, 1 time.
Press the File operation switch after the
above process, Read process loop.
Then, press the File operation switch
again, to continuously repeat the Read
process until the File operation switch
is pressed again.
SW2
Summary of Contents for R8A66597
Page 56: ......