|
Zephyr API Documentation 4.3.0-rc1
A Scalable Open Source RTOS
|
TMP11X temperature sensors. More...
Files | |
| file | tmp11x.h |
| Header file for extended sensor API of TMP11X sensors. | |
Macros | |
| #define | EEPROM_TMP11X_SIZE (4 * sizeof(uint16_t)) |
| EEPROM size for TMP11X. | |
Enumerations | |
| enum | sensor_attribute_tmp_11x { SENSOR_ATTR_TMP11X_ONE_SHOT_MODE = SENSOR_ATTR_PRIV_START , SENSOR_ATTR_TMP11X_SHUTDOWN_MODE , SENSOR_ATTR_TMP11X_CONTINUOUS_CONVERSION_MODE , SENSOR_ATTR_TMP11X_ALERT_PIN_POLARITY , SENSOR_ATTR_TMP11X_ALERT_MODE , SENSOR_ATTR_TMP11X_ALERT_PIN_SELECT } |
| Custom sensor attributes for TMP11X. More... | |
Functions | |
| int | tmp11x_eeprom_read (const struct device *dev, off_t offset, void *data, size_t len) |
| Read from EEPROM. | |
| int | tmp11x_eeprom_write (const struct device *dev, off_t offset, const void *data, size_t len) |
| Write to EEPROM. | |
Alert pin support macros | |
| #define | TMP11X_ALERT_PIN_ACTIVE_LOW 0 |
| Alert pin is active low. | |
| #define | TMP11X_ALERT_PIN_ACTIVE_HIGH 1 |
| Alert pin is active high. | |
| #define | TMP11X_ALERT_ALERT_MODE 0 |
| Alert mode. | |
| #define | TMP11X_ALERT_THERM_MODE 1 |
| Therm mode. | |
| #define | TMP11X_ALERT_PIN_ALERT_SEL 0 |
| Alert pin reflects the status of the alert flags. | |
| #define | TMP11X_ALERT_PIN_DR_SEL 1 |
| Alert pin reflects the status of the data ready flag. | |
TMP11X temperature sensors.
#include <zephyr/drivers/sensor/tmp11x.h>
EEPROM size for TMP11X.
| #define TMP11X_ALERT_ALERT_MODE 0 |
#include <zephyr/drivers/sensor/tmp11x.h>
Alert mode.
| #define TMP11X_ALERT_PIN_ACTIVE_HIGH 1 |
#include <zephyr/drivers/sensor/tmp11x.h>
Alert pin is active high.
| #define TMP11X_ALERT_PIN_ACTIVE_LOW 0 |
#include <zephyr/drivers/sensor/tmp11x.h>
Alert pin is active low.
| #define TMP11X_ALERT_PIN_ALERT_SEL 0 |
#include <zephyr/drivers/sensor/tmp11x.h>
Alert pin reflects the status of the alert flags.
| #define TMP11X_ALERT_PIN_DR_SEL 1 |
#include <zephyr/drivers/sensor/tmp11x.h>
Alert pin reflects the status of the data ready flag.
| #define TMP11X_ALERT_THERM_MODE 1 |
#include <zephyr/drivers/sensor/tmp11x.h>
Therm mode.
#include <zephyr/drivers/sensor/tmp11x.h>
Custom sensor attributes for TMP11X.
#include <zephyr/drivers/sensor/tmp11x.h>
Read from EEPROM.
| dev | Pointer to a tmp11x device |
| offset | Offset in the EEPROM |
| data | Pointer to a buffer to store the read data |
| len | Length of the data to read |
#include <zephyr/drivers/sensor/tmp11x.h>
Write to EEPROM.
| dev | Pointer to a tmp11x device |
| offset | Offset in the EEPROM |
| data | Pointer to the data to write |
| len | Length of the data to write |