Lines Matching refs:start_address
568 uint8_t start_address, end_address; in tmag5273_sample_fetch() local
576 start_address = TMAG5273_REG_X_MSB_RESULT; in tmag5273_sample_fetch()
584 start_address = TMAG5273_REG_Y_MSB_RESULT; in tmag5273_sample_fetch()
592 start_address = TMAG5273_REG_Z_MSB_RESULT; in tmag5273_sample_fetch()
600 start_address = TMAG5273_REG_X_MSB_RESULT; in tmag5273_sample_fetch()
608 start_address = TMAG5273_REG_T_MSB_RESULT; in tmag5273_sample_fetch()
616 start_address = TMAG5273_REG_ANGLE_MSB_RESULT; in tmag5273_sample_fetch()
625 start_address = end_address = TMAG5273_REG_MAGNITUDE_RESULT; in tmag5273_sample_fetch()
632 start_address = TMAG5273_REG_ANGLE_MSB_RESULT; in tmag5273_sample_fetch()
636 start_address = TMAG5273_REG_RESULT_BEGIN; in tmag5273_sample_fetch()
644 __ASSERT_NO_MSG(start_address >= TMAG5273_REG_RESULT_BEGIN); in tmag5273_sample_fetch()
646 __ASSERT_NO_MSG(start_address <= end_address); in tmag5273_sample_fetch()
648 uint32_t nb_bytes = end_address - start_address + 1; in tmag5273_sample_fetch()
655 if ((start_address - diff) >= TMAG5273_REG_RESULT_BEGIN) { in tmag5273_sample_fetch()
656 start_address -= diff; in tmag5273_sample_fetch()
662 __ASSERT_NO_MSG((start_address + nb_bytes) <= (TMAG5273_REG_RESULT_END + 1)); in tmag5273_sample_fetch()
665 uint8_t offset = start_address - TMAG5273_REG_RESULT_BEGIN; in tmag5273_sample_fetch()
673 __ASSERT(start_address <= end_address, in tmag5273_sample_fetch()
677 retval = i2c_burst_read_dt(&drv_cfg->i2c, start_address, &i2c_buffer[offset], in tmag5273_sample_fetch()
703 start_address += block_size; in tmag5273_sample_fetch()