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

Macros

#define EMC1413_DEFAULT_RESOLUTION   0.125
 
#define EMC1413_TEMP_SHIFT_BIT   5
 

Functions

 LOG_MODULE_REGISTER (dev_emc1413)
 
uint8_t emc1413_read (sensor_cfg *cfg, int *reading)
 
uint8_t emc1413_init (sensor_cfg *cfg)
 

Macro Definition Documentation

◆ EMC1413_DEFAULT_RESOLUTION

#define EMC1413_DEFAULT_RESOLUTION   0.125

◆ EMC1413_TEMP_SHIFT_BIT

#define EMC1413_TEMP_SHIFT_BIT   5

Function Documentation

◆ emc1413_init()

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

◆ emc1413_read()

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

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( dev_emc1413  )