Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
current_sense_amplifier.h File Reference

Header file for extended ADC API of Current Sense Amplifier. More...

Go to the source code of this file.

Data Structures

struct  current_sense_amplifier_dt_spec
 Current sense amplifier DT struct. More...

Macros

#define CURRENT_SENSE_AMPLIFIER_DT_SPEC_GET(node_id)
 Get current sensor information from devicetree.

Functions

static void current_sense_amplifier_scale_dt (const struct current_sense_amplifier_dt_spec *spec, int32_t *v_to_i)
 Calculates the actual amperage from a measured voltage.
static int32_t current_sense_amplifier_scale_ua_dt (const struct current_sense_amplifier_dt_spec *spec, int32_t microvolts)
 Calculates the actual amperage from a measured voltage.

Detailed Description

Header file for extended ADC API of Current Sense Amplifier.