Searched refs:noOfBytes (Results 1 – 4 of 4) sorted by relevance
| /hal_nxp-latest/mcux/mcux-sdk/components/extern_flash/ |
| D | fsl_adapter_eeprom_InternalFlash.c | 58 static eeprom_status_t EEPROM_CleanEraseFlag(uint32_t noOfBytes, uint32_t addr) in EEPROM_CleanEraseFlag() argument 64 endBlk = (addr + noOfBytes) / s_eeState.eepromParams_SectorSize; in EEPROM_CleanEraseFlag() 66 if ((addr + noOfBytes) & s_eeState.eepromParams_SectorSize) in EEPROM_CleanEraseFlag() 76 static eeprom_status_t EEPROM_PrepareForWrite(uint32_t noOfBytes, uint32_t addr) in EEPROM_PrepareForWrite() argument 82 endBlk = (addr + noOfBytes) / s_eeState.eepromParams_SectorSize; in EEPROM_PrepareForWrite() 84 if ((addr + noOfBytes) & s_eeState.eepromParams_SectorSize) in EEPROM_PrepareForWrite() 196 eeprom_status_t EEPROM_WriteData(uint32_t noOfBytes, uint32_t addr, uint8_t *Outbuf) in EEPROM_WriteData() argument 199 if (kStatus_EeSuccess != EEPROM_PrepareForWrite(noOfBytes, addr)) in EEPROM_WriteData() 205 if (HAL_FlashProgramUnaligned(s_eeState.eepromParams_StartOffset + addr, noOfBytes, Outbuf) != in EEPROM_WriteData() 210 EEPROM_CleanEraseFlag(noOfBytes, addr); in EEPROM_WriteData() [all …]
|
| D | fsl_adapter_eeprom_AT45DBxxxx.c | 146 EEPROM_STATIC eeprom_status_t EEPROM_PrepareForWrite(uint32_t noOfBytes, uint32_t addre) in EEPROM_PrepareForWrite() argument 153 endBlk = (addre + noOfBytes) / EEPROM_BLOCK_SIZE; in EEPROM_PrepareForWrite() 155 if (0U != ((addre + noOfBytes) % EEPROM_BLOCK_SIZE)) in EEPROM_PrepareForWrite() 187 EEPROM_STATIC eeprom_status_t EEPROM_WritePage(uint32_t noOfBytes, uint32_t addre, uint8_t *Outbuf) in EEPROM_WritePage() argument 190 if (0U == noOfBytes) in EEPROM_WritePage() 205 EEPROM_SetSpiTransferValue(&xfer, Outbuf, NULL, noOfBytes); in EEPROM_WritePage() 339 eeprom_status_t EEPROM_WriteData(uint32_t noOfBytes, uint32_t addr2eeprom, uint8_t *Outbuf) in EEPROM_WriteData() argument 342 if (0U == noOfBytes) in EEPROM_WriteData() 349 (void)EEPROM_PrepareForWrite(noOfBytes, addr2eeprom); in EEPROM_WriteData() 353 while ((addr2eeprom & EEPROM_PAGE_MASK) + noOfBytes > EEPROM_PAGE_MASK) in EEPROM_WriteData() [all …]
|
| D | fsl_adapter_eeprom_AT25Fxxxx.c | 193 static eeprom_status_t EEPROM_WritePage(uint32_t noOfBytes, uint32_t addre, uint8_t *Outbuf) in EEPROM_WritePage() argument 197 if (0U == noOfBytes) in EEPROM_WritePage() 212 EEPROM_SetSpiTransferValue(&xfer, Outbuf, NULL, noOfBytes, SPI_FIFOWR_EOT(1)); in EEPROM_WritePage() 226 eeprom_status_t EEPROM_WriteData(uint32_t noOfBytes, uint32_t addr2eeprom, uint8_t *Outbuf) in EEPROM_WriteData() argument 230 while ((addr2eeprom & EEPROM_PAGE_MASK) + noOfBytes > EEPROM_PAGE_MASK) in EEPROM_WriteData() 235 noOfBytes -= bytes; in EEPROM_WriteData() 248 retval = EEPROM_WritePage(noOfBytes, addr2eeprom, Outbuf); in EEPROM_WriteData() 259 eeprom_status_t EEPROM_ReadData(uint16_t noOfBytes, uint32_t addr2eeprom, uint8_t *inbuf) in EEPROM_ReadData() argument 268 EEPROM_SetSpiTransferValue(&xfer, NULL, inbuf, noOfBytes, SPI_FIFOWR_EOT(1)); in EEPROM_ReadData()
|
| D | fsl_adapter_eeprom.h | 123 eeprom_status_t EEPROM_ReadData(uint16_t noOfBytes, /* IN: No of bytes to read */ 139 eeprom_status_t EEPROM_WriteData(uint32_t noOfBytes, /* IN: No of bytes to write */
|