Electronic Components Datasheet Search |
|
AN1475 Datasheet(PDF) 6 Page - STMicroelectronics |
|
AN1475 Datasheet(HTML) 6 Page - STMicroelectronics |
6 / 8 page 6/8 DEVELOPING AN ST7265x MASS STORAGE APPLICATION The medium is identified by the index of this array. Current Operation The MAL_State variable gives the internal state of the current operation. Read, write, format and verify operations are indicated with this variable. The following values are available for the MAL_State function: #define MAL_IDLE 0 // no operation #define MAL_READING 1 // upload data to USB #define MAL_WRITING 2 // download data from USB #define MAL_VERIFYING 3 // verifying #define MAL_FORMATTING 4 // formatting #define MAL_MEM_READING 5 // reading data to RAM #define MAL_MEM_WRITING 6 // writing data from RAM Active Medium The MAL_Mediano variable identifies the medium that is currently accessed. unsigned charMAL_Mediano; 3.3.2.2 Media Configuration This interface is related with the physical and electrical configuration of the media device itself. Through this interface, the user must provide certain information to the MAL or carry out cer- tain functions required by the MAL. Indeed, some functions depend on the user hardware or software implementation, and can therefore not be directly carried out by the MAL. None of the functions defined in this section can be omitted. Even if no action is taken, the function must be defined. Existence of the Medium There are two operations in this category, medium existence testing and the medium removal interrupt. Medium existence testing should be done by the user application. The application calls the MAL_Medium_Plug() interrupt to inform the MAL library that a medium is present: void MAL_Medium_Plug(unsigned char slot) The slot parameter indicates which medium is present. The user application should use an interrupt routine to monitor medium removal. When the medium is removed, an interrupt is triggered and an application-defined interrupt routine is called. In this interrupt routine, the user application calls the MAL_Medium_Removing() func- tion to notify the MAL that the medium is removed. The parameter indicates the slot where the medium removal has occurred. The MAL guarantees that the MAL_Medium_Removing() function returns to the medium removal interrupt routine as soon as possible. The template of this function is: void MAL_Medium_Removing(char Index); |
Similar Part No. - AN1475 |
|
Similar Description - AN1475 |
|
|
Link URL |
Privacy Policy |
ALLDATASHEET.NET |
Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | 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 |