| Electronic Components Datasheet Search |
|
SH7216 Datasheet(PDF) 16 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
SH7216 Datasheet(HTML) 16 Page - Renesas Technology Corp |
|
16 / 32 page ![]() SH7216 Group USB Function Module: USB Mass Storage Class REJ06B0897-0100/Rev.1.00 July 2009 Page 16 of 32 5.3 File Structure This sample program consists of nine source files and eleven header files. The overall file structure is shown in table 8. Each function is arranged in one file by transfer method or function type. Table 8 File Structure File Name Principle Role Startup.c USB function default settings UsbMain.c Judging the causes of interrupts Sending and receiving packets DoRequest.c Processing setup commands issued by the host DoRequestBOT_StorageClass.c Processing USB Mass Storage Class (Bulk-Only Transport) class commands DoControl.c Executing control transfer DoBulk.c Executing bulk transport DoBOTMSClass.c Executing USB Mass Storage Class (Bulk-Only Transport) transport DoSCSICommand.c Analyzing and processing SCSI commands sct.src Transferring initial values of variables from the ROM to the RAM CatBOTTypedef.h Defining structures used for Bulk-Only Transport CatProType.h Prototype declarations CatSCSITypedef.h Defining structures used for SCSI, and defining macro to configure FAT information CatTypedef.h Defining the basic structures used in USB firmware SetBOTInfo.h Default settings of variables needed to support Bulk-Only Transport SetMacro.h Defining macros SetSCSIInfo.h Default settings of variables needed to support SCSI commands SetSystemSwitch.h System operation settings SetUsbInfo.h Default settings of variables used in USB firmware SysMemMap.h Defining memory map addresses iodefine.h Defining SH7216 registers 5.4 Purposes of Functions Table 9 to 16 shows functions contained in each file and their purposes. • Startup.c When a power-on reset or manual reset is carried out, the SetPowerOnSection of the Startup.c file is called. At this point, the SH7216 default settings are entered and the RAM area used for bulk transport is cleared. Table 9 Startup.c File in which Stored Function Name Purpose SetPowerOnSection Initializes module and memory, and shifts to the main loop InitSDRAM Makes initial settings for the SDRAM mounted on the SH7216 CPU board _INITSCT Copies variables that have default settings to the RAM work area InitMemory Clears the RAM area used in bulk communication InitSystem Pull-up control of the USB bus Startup.c Set_EPInfoR Writes endpoint information |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |