![]() |
TT-System-Firmware APIs 19.10.99
Tenstorrent Firmware
|
#include <zephyr/device.h>#include <zephyr/drivers/i2c.h>#include <zephyr/drivers/mfd/max6639.h>#include <zephyr/drivers/sensor.h>#include <zephyr/sys/byteorder.h>#include <zephyr/sys/util.h>#include <zephyr/kernel.h>#include <zephyr/logging/log.h>
Data Structures | |
| struct | max6639_sensor_config |
| struct | max6639_sensor_data |
Macros | |
| #define | DT_DRV_COMPAT maxim_max6639_sensor |
| #define | MAX6639_SENSOR_INIT(inst) |
Functions | |
| LOG_MODULE_REGISTER (max6639_sensor, CONFIG_SENSOR_LOG_LEVEL) | |
| static int | max6639_sensor_sample_fetch (const struct device *dev, enum sensor_channel chan) |
| static int | max6639_sensor_channel_get (const struct device *dev, enum sensor_channel chan, struct sensor_value *val) |
| static int | max6639_sensor_init (const struct device *dev) |
| static | DEVICE_API (sensor, max6639_sensor_api) |
| DT_INST_FOREACH_STATUS_OKAY (MAX6639_SENSOR_INIT) | |
| #define DT_DRV_COMPAT maxim_max6639_sensor |
| #define MAX6639_SENSOR_INIT | ( | inst | ) |
|
static |
| DT_INST_FOREACH_STATUS_OKAY | ( | MAX6639_SENSOR_INIT | ) |
| LOG_MODULE_REGISTER | ( | max6639_sensor | , |
| CONFIG_SENSOR_LOG_LEVEL | ) |
|
static |
|
static |
|
static |