Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
pzem004t.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025 Srishtik Bhandarkar
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12
13#ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_PZEM004T_H_
14#define ZEPHYR_INCLUDE_DRIVERS_SENSOR_PZEM004T_H_
15
17
24
53
73
75
76#endif /* ZEPHYR_INCLUDE_DRIVERS_SENSOR_PZEM004T_H_ */
sensor_attribute_pzem004t
Custom sensor attributes for PZEM-004T.
Definition pzem004t.h:55
sensor_channel_pzem004t
Custom sensor channels for PZEM-004T.
Definition pzem004t.h:26
@ SENSOR_ATTR_PZEM004T_ADDRESS_INST_SET
Modbus address the driver instance uses to reach the device.
Definition pzem004t.h:66
@ SENSOR_ATTR_PZEM004T_RESET_ENERGY
Reset the energy counter of the device.
Definition pzem004t.h:71
@ SENSOR_ATTR_PZEM004T_MODBUS_RTU_ADDRESS
Modbus address of the device.
Definition pzem004t.h:61
@ SENSOR_ATTR_PZEM004T_POWER_ALARM_THRESHOLD
Active power alarm threshold, in W.
Definition pzem004t.h:57
@ SENSOR_CHAN_PZEM004T_POWER_ALARM_THRESHOLD
Active power alarm threshold, in W.
Definition pzem004t.h:37
@ SENSOR_CHAN_PZEM004T_RESET_ENERGY
Reset the energy counter of the device.
Definition pzem004t.h:51
@ SENSOR_CHAN_PZEM004T_ADDRESS_INST_SET
Modbus address the driver instance uses to reach the device.
Definition pzem004t.h:46
@ SENSOR_CHAN_PZEM004T_ENERGY
Active energy accumulated over time, in Wh.
Definition pzem004t.h:28
@ SENSOR_CHAN_PZEM004T_MODBUS_RTU_ADDRESS
Modbus address of the device.
Definition pzem004t.h:41
@ SENSOR_CHAN_PZEM004T_ALARM_STATUS
Alarm status: 0xFF when the active power is above the power alarm threshold, 0x00 otherwise.
Definition pzem004t.h:35
@ SENSOR_CHAN_PZEM004T_POWER_FACTOR
Power factor, the ratio of real power to apparent power, with 0.01 resolution.
Definition pzem004t.h:30
@ SENSOR_ATTR_PRIV_START
This and higher values are sensor specific.
Definition sensor.h:449
@ SENSOR_CHAN_PRIV_START
This and higher values are sensor specific.
Definition sensor.h:253
Main header file for sensor driver API.