Electronic Components Datasheet Search
  English  ▼

X  

AN1475 Datasheet(PDF) 4 Page - STMicroelectronics

Part # AN1475
Description  DEVELOPING AN ST7265xMASS STORAGE APPLICATION
PDF  8 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1475 Datasheet(HTML) 4 Page - STMicroelectronics

  AN1475 Datasheet HTML 1Page - STMicroelectronics AN1475 Datasheet HTML 2Page - STMicroelectronics AN1475 Datasheet HTML 3Page - STMicroelectronics AN1475 Datasheet HTML 4Page - STMicroelectronics AN1475 Datasheet HTML 5Page - STMicroelectronics AN1475 Datasheet HTML 6Page - STMicroelectronics AN1475 Datasheet HTML 7Page - STMicroelectronics AN1475 Datasheet HTML 8Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 4 / 8 page
background image
4/8
DEVELOPING AN ST7265x MASS STORAGE APPLICATION
3 USING THE MASS STORAGE LIBRARIES
3.1 MAXIMUM NUMBER OF LOGICAL UNITS
A constant representing the number of medium slots implemented in the application project
must be defined by the user application.
#define MAX_LUN
The valid range of this variable is between 0 and 15. The MAX_LUN value is one less than the
number of slots; for example, if the MAX_LUN value is 3, there are 4 slots.
3.2 MEDIA SELECTION
A Media Access Layer (MAL) add-in for each type of storage media is provided by STMicroe-
lectronics. Several functions are provided with this interface and are called using a single entry
function. To assign logical units to each type of media, an array pointing to the entry function
must be provided by the application.
const void (*Mal_Func[MAX_LUN+1])();
The medium is identified by the index of this array. For example, the function array is assigned
as:
extern void MAL_SMC_Funcs(void);
include SMC support in MAL
extern void MAL_MMC_Funcs(void);
include MMC support in MAL
;
Assign LUNs (Logical Unit Numbers) in ascending order starting with LUN0
const void (*Mal_Func[MAX_LUN+1])() = {
MAL_SMC_Funcs,
MAL_MMC_Funcs
};
In the above example, the MAL_SMC_Funcs() function is provided with the MAL for SMC and
the MAL_MMC_Funcs() function is provided with the MAL for MMC. Thus, the SMC device will
be identified as LUN0 and the MMC device will be identified as LUN1.
3.3 INTERFACE DESCRIPTION
3.3.1 Hardware Interfaces
3.3.1.1 USB Interface
The pins used for the USB connection are defined in the ST7265x product datasheet.



Html Pages

1 2 3 4 5 6 7 8


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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