Zephyr Project API 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
current_sense_amplifier_dt_spec Struct Reference

Current sense amplifier DT struct. More...

#include <current_sense_amplifier.h>

Data Fields

struct adc_dt_spec port
 ADC channel info.
struct gpio_dt_spec power_gpio
 GPIO to enable the amplifier.
uint32_t sense_milli_ohms
 Sense resistor value in milliohms.
uint16_t sense_gain_mult
 Sense amplifier gain multiplier.
uint16_t sense_gain_div
 Sense amplifier gain divider.
uint16_t noise_threshold
 Noise threshold.
int16_t zero_current_voltage_mv
 Voltage at zero current in millivolts.
enum adc_gain gain_extended_range
 Gain range.
bool enable_calibration
 Enable calibration.

Detailed Description

Current sense amplifier DT struct.

This stores information about a current sense amplifier obtained from Devicetree.

See also
CURRENT_SENSE_AMPLIFIER_DT_SPEC_GET

Field Documentation

◆ enable_calibration

bool current_sense_amplifier_dt_spec::enable_calibration

Enable calibration.

◆ gain_extended_range

enum adc_gain current_sense_amplifier_dt_spec::gain_extended_range

Gain range.

◆ noise_threshold

uint16_t current_sense_amplifier_dt_spec::noise_threshold

Noise threshold.

◆ port

struct adc_dt_spec current_sense_amplifier_dt_spec::port

ADC channel info.

◆ power_gpio

struct gpio_dt_spec current_sense_amplifier_dt_spec::power_gpio

GPIO to enable the amplifier.

◆ sense_gain_div

uint16_t current_sense_amplifier_dt_spec::sense_gain_div

Sense amplifier gain divider.

◆ sense_gain_mult

uint16_t current_sense_amplifier_dt_spec::sense_gain_mult

Sense amplifier gain multiplier.

◆ sense_milli_ohms

uint32_t current_sense_amplifier_dt_spec::sense_milli_ohms

Sense resistor value in milliohms.

◆ zero_current_voltage_mv

int16_t current_sense_amplifier_dt_spec::zero_current_voltage_mv

Voltage at zero current in millivolts.


The documentation for this struct was generated from the following file: