OpenBIC
OpenSource Bridge-IC
nct214.c File Reference
#include <stdio.h>
#include "sensor.h"
#include "hal_i2c.h"
#include "libutil.h"
#include <logging/log.h>
#include "nct214.h"
Include dependency graph for nct214.c:

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)
 

Macro Definition Documentation

◆ TEMPERATURE_RANGE_EXTENDED_VALUE

#define TEMPERATURE_RANGE_EXTENDED_VALUE   64

◆ TEMPERATURE_RANGE_SELECT_MASK

#define TEMPERATURE_RANGE_SELECT_MASK   BIT(2)

◆ TEMPERATURE_REMOTE_FRACTION

#define TEMPERATURE_REMOTE_FRACTION   0.25

◆ TEMPERATURE_REMOTE_FRACTION_FOR_SENSOR_READ_FRACTION

#define TEMPERATURE_REMOTE_FRACTION_FOR_SENSOR_READ_FRACTION   (TEMPERATURE_REMOTE_FRACTION * 1000)

Function Documentation

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( nct214  )

◆ nct214_init()

uint8_t nct214_init ( sensor_cfg cfg)
Here is the call graph for this function:

◆ nct214_read()

uint8_t nct214_read ( sensor_cfg cfg,
int *  reading 
)
Here is the call graph for this function: