OpenBIC
OpenSource Bridge-IC
|
#include <stdio.h>
#include <string.h>
#include "sensor.h"
#include "hal_i2c.h"
#include "pmbus.h"
#include <logging/log.h>
Macros | |
#define | MAX1363_CHANNEL_SEL_MASK 0x1E |
#define | MAX1363_CHANNEL_SEL(a) ((a) << 1) |
#define | MAX1363_CONFIG_SCAN_SINGLE_1 0x60 |
#define | MAX1363_CONFIG_SE 0x01 |
#define | MAX1363_SCAN_MASK 0x60 |
#define | MAX1363_SE_DE_MASK 0x01 |
#define | MAX11617_VREF 2.048 |
Functions | |
LOG_MODULE_REGISTER (max11617) | |
uint8_t | max11617_read (sensor_cfg *cfg, int *reading) |
uint8_t | max11617_init (sensor_cfg *cfg) |
#define MAX11617_VREF 2.048 |
#define MAX1363_CHANNEL_SEL | ( | a | ) | ((a) << 1) |
#define MAX1363_CHANNEL_SEL_MASK 0x1E |
#define MAX1363_CONFIG_SCAN_SINGLE_1 0x60 |
#define MAX1363_CONFIG_SE 0x01 |
#define MAX1363_SCAN_MASK 0x60 |
#define MAX1363_SE_DE_MASK 0x01 |
LOG_MODULE_REGISTER | ( | max11617 | ) |
uint8_t max11617_init | ( | sensor_cfg * | cfg | ) |
uint8_t max11617_read | ( | sensor_cfg * | cfg, |
int * | reading | ||
) |