OpenBIC
OpenSource Bridge-IC
|
#include <stdio.h>
#include "sensor.h"
#include "hal_i2c.h"
#include "libutil.h"
#include <logging/log.h>
#include "nct214.h"
Macros | |
#define | TEMPERATURE_RANGE_EXTENDED_VALUE 64 |
#define | TEMPERATURE_REMOTE_FRACTION 0.25 |
#define | TEMPERATURE_REMOTE_FRACTION_FOR_SENSOR_READ_FRACTION (TEMPERATURE_REMOTE_FRACTION * 1000) |
#define | TEMPERATURE_RANGE_SELECT_MASK BIT(2) |
Functions | |
LOG_MODULE_REGISTER (nct214) | |
uint8_t | nct214_read (sensor_cfg *cfg, int *reading) |
uint8_t | nct214_init (sensor_cfg *cfg) |
#define TEMPERATURE_RANGE_EXTENDED_VALUE 64 |
#define TEMPERATURE_RANGE_SELECT_MASK BIT(2) |
#define TEMPERATURE_REMOTE_FRACTION 0.25 |
#define TEMPERATURE_REMOTE_FRACTION_FOR_SENSOR_READ_FRACTION (TEMPERATURE_REMOTE_FRACTION * 1000) |
LOG_MODULE_REGISTER | ( | nct214 | ) |
uint8_t nct214_init | ( | sensor_cfg * | cfg | ) |
uint8_t nct214_read | ( | sensor_cfg * | cfg, |
int * | reading | ||
) |