| Electronic Components Datasheet Search |
|
AN1475 Datasheet(PDF) 4 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1475 Datasheet(HTML) 4 Page - STMicroelectronics |
|
4 / 8 page ![]() 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. |
|
|
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 |