Searched refs:first_reg (Results 1 – 1 of 1) sorted by relevance
29 static const size_t first_reg = BMM150_REG_DIG_X1; in bmm150SaveDigData() local30 magTask->dig_x1 = magTask->raw_dig_data[BMM150_REG_DIG_X1 - first_reg]; in bmm150SaveDigData()31 magTask->dig_y1 = magTask->raw_dig_data[BMM150_REG_DIG_Y1 - first_reg]; in bmm150SaveDigData()32 magTask->dig_x2 = magTask->raw_dig_data[BMM150_REG_DIG_X2 - first_reg]; in bmm150SaveDigData()33 magTask->dig_y2 = magTask->raw_dig_data[BMM150_REG_DIG_Y2 - first_reg]; in bmm150SaveDigData()34 magTask->dig_xy2 = magTask->raw_dig_data[BMM150_REG_DIG_XY2 - first_reg]; in bmm150SaveDigData()35 magTask->dig_xy1 = magTask->raw_dig_data[BMM150_REG_DIG_XY1 - first_reg]; in bmm150SaveDigData()37 magTask->dig_z1 = *(uint16_t *)(&magTask->raw_dig_data[BMM150_REG_DIG_Z1_LSB - first_reg]); in bmm150SaveDigData()38 magTask->dig_z2 = *(int16_t *)(&magTask->raw_dig_data[BMM150_REG_DIG_Z2_LSB - first_reg]); in bmm150SaveDigData()39 magTask->dig_z3 = *(int16_t *)(&magTask->raw_dig_data[BMM150_REG_DIG_Z3_LSB - first_reg]); in bmm150SaveDigData()[all …]