|
Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
|
Analog Devices ADT7604 Temperature Sensor. More...
Files | |
| file | adt7604.h |
| Header file for extended sensor API of ADT7604 sensor. | |
Data Structures | |
| struct | adt7604_custom_sensor_data |
| Custom sensor data row for adt7604_write_custom_sensor_data_table(). More... | |
| struct | adt7604_custom_sensor_data_table |
| Custom sensor table payload for adt7604_write_custom_sensor_data(). More... | |
Enumerations | |
| enum | sensor_attribute_adt7604 { SENSOR_ATTR_ADT7604_TEMP_UNIT = SENSOR_ATTR_PRIV_START , SENSOR_ATTR_ADT7604_FILTER_NOTCH , SENSOR_ATTR_ADT7604_MUX_DELAY_US } |
| ADT7604-specific sensor attributes. More... | |
Functions | |
| int | adt7604_write_custom_sensor_data_table (const struct device *dev, uint8_t chan_num, const struct adt7604_custom_sensor_data_table *table) |
| Write custom sensor data into the ADT7604 custom sensor table. | |
Analog Devices ADT7604 Temperature Sensor.
#include <zephyr/drivers/sensor/adt7604.h>
ADT7604-specific sensor attributes.
| int adt7604_write_custom_sensor_data_table | ( | const struct device * | dev, |
| uint8_t | chan_num, | ||
| const struct adt7604_custom_sensor_data_table * | table ) |
#include <zephyr/drivers/sensor/adt7604.h>
Write custom sensor data into the ADT7604 custom sensor table.
Writes the custom sensor data to the specified byte offset in the custom table (0x250 + custom_addr_ptr) and updates the channel configuration with the calculated address and length fields.
User is responsible for:
| dev | ADT7604 device pointer |
| chan_num | Hardware channel number (matches DT reg, 1-based) |
| table | Payload containing custom sensor data and starting byte offset |