7#ifndef ZEPHYR_INCLUDE_DRIVERS_ADC_CURRENT_SENSE_SHUNT_H_
8#define ZEPHYR_INCLUDE_DRIVERS_ADC_CURRENT_SENSE_SHUNT_H_
27#define CURRENT_SENSE_SHUNT_DT_SPEC_GET(node_id) \
29 .port = ADC_DT_SPEC_GET(node_id), \
30 .shunt_micro_ohms = DT_PROP(node_id, shunt_resistor_micro_ohms), \
static void current_sense_shunt_scale_dt(const struct current_sense_shunt_dt_spec *spec, int32_t *v_to_i)
Calculates the actual amperage from the measured voltage.
Definition: current_sense_shunt.h:40
ADC public API header file.
__UINT32_TYPE__ uint32_t
Definition: stdint.h:90
__INT32_TYPE__ int32_t
Definition: stdint.h:74
__INT64_TYPE__ int64_t
Definition: stdint.h:75
Container for ADC channel information specified in devicetree.
Definition: adc.h:263
Definition: current_sense_shunt.h:12
const struct adc_dt_spec port
Definition: current_sense_shunt.h:13
uint32_t shunt_micro_ohms
Definition: current_sense_shunt.h:14