static void gzp_set_host_id(const uint8_t* src) { if(*((uint8_t*)GZP_PARAMS_STORAGE_ADR) == 0xff) { nrf_nvmc_write_bytes(GZP_PARAMS_STORAGE_ADR + 1, src, GZP_HOST_ID_LENGTH); nrf_nvmc_write_byte(GZP_PARAMS_STORAGE_ADR, 0x00); } }
static void gzp_params_db_add(const uint8_t* src_element, uint8_t index) { nrf_nvmc_write_bytes((GZP_PARAMS_DB_ADR + (index * GZP_PARAMS_DB_ELEMENT_SIZE)), src_element, (uint32_t)GZP_PARAMS_DB_ELEMENT_SIZE); }
void nrf_utils_write_flash_bytes(uint32_t addr, uint8_t * buf, uint32_t len) { nrf_nvmc_write_bytes(addr, buf, len); }
uint32_t nrf5FlashWrite(uint32_t aAddress, uint8_t *aData, uint32_t aSize) { nrf_nvmc_write_bytes(aAddress, aData, aSize); return aSize; }