Searched refs:INA238_FIXED_SHUNT (Results 1 – 1 of 1) sorted by relevance
93 #define INA238_FIXED_SHUNT 20000 macro276 *val = div_s64((s16)regval * INA238_FIXED_SHUNT * data->gain, in ina238_read_current()300 power = div_u64(regval * 1000ULL * INA238_FIXED_SHUNT * in ina238_read_power()314 power = div_u64((regval << 8) * 1000ULL * INA238_FIXED_SHUNT * in ina238_read_power()348 1000ULL * INA238_FIXED_SHUNT * data->gain); in ina238_write_power()