Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

Microchip PAC194x power monitor. More...

Files

file  pac194x.h
 Devicetree binding constants for the Microchip PAC194x power monitor.

Full-scale range mode

Values for the microchip,vbus-mode and microchip,vsense-mode devicetree properties.

#define PAC_UNIPOLAR_FSR   0
 Unipolar full-scale range.
#define PAC_BIPOLAR_FSR   1
 Bipolar full-scale range.
#define PAC_BIPOLAR_HALF_FSR   2
 Bipolar half (FSR / 2) range.

Accumulation source

Values for the microchip,accumulation-mode devicetree property.

#define PAC_ACCUM_VPOWER   0
 Accumulate power data.
#define PAC_ACCUM_VSENSE   1
 Accumulate current (sense voltage) data.
#define PAC_ACCUM_VBUS   2
 Accumulate bus voltage data.

Refresh mode

Values for the microchip,refresh-mode devicetree property.

#define PAC_REFRESH_MANUAL   0
 Manual refresh.
#define PAC_REFRESH_AUTO_WAIT   1
 Automatic refresh, wait for valid data.
#define PAC_REFRESH_AUTO_NOWAIT   2
 Automatic refresh, do not wait.

Detailed Description

Microchip PAC194x power monitor.

Macro Definition Documentation

◆ PAC_ACCUM_VBUS

#define PAC_ACCUM_VBUS   2

#include <zephyr/dt-bindings/sensor/pac194x.h>

Accumulate bus voltage data.

◆ PAC_ACCUM_VPOWER

#define PAC_ACCUM_VPOWER   0

#include <zephyr/dt-bindings/sensor/pac194x.h>

Accumulate power data.

◆ PAC_ACCUM_VSENSE

#define PAC_ACCUM_VSENSE   1

#include <zephyr/dt-bindings/sensor/pac194x.h>

Accumulate current (sense voltage) data.

◆ PAC_BIPOLAR_FSR

#define PAC_BIPOLAR_FSR   1

#include <zephyr/dt-bindings/sensor/pac194x.h>

Bipolar full-scale range.

◆ PAC_BIPOLAR_HALF_FSR

#define PAC_BIPOLAR_HALF_FSR   2

#include <zephyr/dt-bindings/sensor/pac194x.h>

Bipolar half (FSR / 2) range.

◆ PAC_REFRESH_AUTO_NOWAIT

#define PAC_REFRESH_AUTO_NOWAIT   2

#include <zephyr/dt-bindings/sensor/pac194x.h>

Automatic refresh, do not wait.

◆ PAC_REFRESH_AUTO_WAIT

#define PAC_REFRESH_AUTO_WAIT   1

#include <zephyr/dt-bindings/sensor/pac194x.h>

Automatic refresh, wait for valid data.

◆ PAC_REFRESH_MANUAL

#define PAC_REFRESH_MANUAL   0

#include <zephyr/dt-bindings/sensor/pac194x.h>

Manual refresh.

◆ PAC_UNIPOLAR_FSR

#define PAC_UNIPOLAR_FSR   0

#include <zephyr/dt-bindings/sensor/pac194x.h>

Unipolar full-scale range.