| Electronic Components Datasheet Search |
|
AN4570 Datasheet(PDF) 21 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4570 Datasheet(HTML) 21 Page - STMicroelectronics |
|
21 / 46 page ![]() DocID026804 Rev 1 21/46 AN4570 Interfacing with a non-multiplexed, asynchronous 16-bit NOR Flash memory 45 { /* Write data to NOR */ HAL_NOR_Program(&norHandle, (uint32_t *)(NOR_DEVICE_ADDR + uwStartAddress), pData); /* Read NOR device status */ if(HAL_NOR_GetStatus(&norHandle, NOR_DEVICE_ADDR, PROGRAM_TIMEOUT) != NOR_SUCCESS) { return NOR_ERROR; } /* Update the counters */ index--; uwStartAddress += 2; pData++; } return NOR_OK; } /** * @brief Reads an amount of data from the NOR device. * @param uwStartAddress: Read start address * @param pData: Pointer to data to be read * @param uwDataSize: Size of data to read * @retval NOR memory status */ uint8_t NOR_ReadData(uint32_t uwStartAddress, uint16_t* pData, uint32_t uwDataSize) { if(HAL_NOR_ReadBuffer(&norHandle, NOR_DEVICE_ADDR + uwStartAddress, pData, uwDataSize) != HAL_OK) { return NOR_ERROR; } else { return NOR_OK; } } |
|
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 |