Lines Matching refs:response
49 int max17048_read_register(const struct device *dev, uint8_t registerId, uint16_t *response) in max17048_read_register() argument
60 *response = sys_get_be16(max17048_buffer); in max17048_read_register()
67 int max17048_adc(const struct device *i2c_dev, uint16_t *response) in max17048_adc() argument
69 return max17048_read_register(i2c_dev, REGISTER_VCELL, response); in max17048_adc()
75 int max17048_voltage(const struct device *i2c_dev, uint32_t *response) in max17048_voltage() argument
92 *response = (uint32_t)raw_voltage * 78.125; in max17048_voltage()
99 int max17048_percent(const struct device *i2c_dev, uint8_t *response) in max17048_percent() argument
114 *response = data / 256; in max17048_percent()
122 int max17048_crate(const struct device *i2c_dev, int16_t *response) in max17048_crate() argument
124 int rc = max17048_read_register(i2c_dev, REGISTER_CRATE, response); in max17048_crate()
138 *response = *response * 208; in max17048_crate()