OpenBIC
OpenSource Bridge-IC
|
#include <stdio.h>
#include <string.h>
#include <logging/log.h>
#include "sensor.h"
#include "hal_i2c.h"
#include "emc1412.h"
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) |
#define EMC1412_DEFAULT_RESOLUTION 0.125 |
#define EMC1412_DEFAULT_TEMP_LSB_REG 0x29 |
#define EMC1412_DEFAULT_TEMP_MSB_REG 0x00 |
#define EMC1412_TEMP_SHIFT_BIT 5 |
uint8_t emc1412_init | ( | sensor_cfg * | cfg | ) |
uint8_t emc1412_read | ( | sensor_cfg * | cfg, |
int * | reading | ||
) |
LOG_MODULE_REGISTER | ( | dev_emc1412 | ) |