| поискавой системы для электроныых деталей |
|
AN2540 датащи(PDF) 12 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2540 датащи(HTML) 12 Page - STMicroelectronics |
|
12 / 25 page ![]() Implementing the EEPROM emulation AN2540 - Application note 12/25 3.2.2.1 User API definition Table 2. EepromFormat Function Name EepromFormat Function Prototype u8 EepromFormat(void); Behavior Description This function erases sector0 and sector1 and writes a VALID_SECTOR header to sector0. Input Parameter None Return Parameter Status of the operation. Called functions FMI_EraseSector,FMI_WaitForLastOperation,FMI_WriteHalfWord Table 3. FindValidSector Function Name FindValidSector Function Prototype u8 FindValidSector(u8 operation); Behavior Description This function reads both sector’s headers and returns the sector number which contains valid data. Input Parameter A byte indicating that we are looking for a valid sector for write or read operation(READ_FROM_VALID_SECTOR or WRITE_IN_VALID_SECTOR Return Parameter Sector number. Called functions FMI_ReadWord. Table 4. ReadVariable Function Name ReadVariable Function Prototype u16 ReadVariable(u8 index, u32 *T); Behavior Description This function reads variable data. Only last update is read. The function enters a loop in which it reads the variable entries until the last one is found. Finally, the data is returned. Input Parameter – index: variable identifier – T: variable array Return Parameter Returns 16-bit read data on success or error code on failure. Called functions FindValidSector. Table 5. WriteVariable Function Name WriteVariable Function Prototype u8 WriteVariable(u8 index, u32 *T, u16 data); Behavior Description This function is called by the user application to update a variable Input Parameter – index: variable identifier – T: variable array – data: 16-bit data to be written Return Parameter Returns 1 on success or error code on failure Called functions WriteVerifyVariableFull, EepromSectorTransfer. |
|
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |