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

Macros

#define EMC1412_DEFAULT_TEMP_MSB_REG   0x00
 
#define EMC1412_DEFAULT_TEMP_LSB_REG   0x29
 
#define EMC1412_DEFAULT_RESOLUTION   0.125
 
#define EMC1412_TEMP_SHIFT_BIT   5
 

Functions

 LOG_MODULE_REGISTER (dev_emc1412)
 
uint8_t emc1412_read (sensor_cfg *cfg, int *reading)
 
uint8_t emc1412_init (sensor_cfg *cfg)
 

Macro Definition Documentation

◆ EMC1412_DEFAULT_RESOLUTION

#define EMC1412_DEFAULT_RESOLUTION   0.125

◆ EMC1412_DEFAULT_TEMP_LSB_REG

#define EMC1412_DEFAULT_TEMP_LSB_REG   0x29

◆ EMC1412_DEFAULT_TEMP_MSB_REG

#define EMC1412_DEFAULT_TEMP_MSB_REG   0x00

◆ EMC1412_TEMP_SHIFT_BIT

#define EMC1412_TEMP_SHIFT_BIT   5

Function Documentation

◆ emc1412_init()

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

◆ emc1412_read()

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

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( dev_emc1412  )