|
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 | ADC128_REG_CONFIG 0x00 |
| #define | ADC128_REG_CONFIG_ADV 0x0b |
| #define | ADC128_REG_IN(nr) (0x20 + (nr)) |
| #define | ADC128_VREF 2.56 |
Functions | |
| LOG_MODULE_REGISTER (adc128d818) | |
| uint8_t | adc128d818_read (sensor_cfg *cfg, int *reading) |
| uint8_t | adc128d818_write (sensor_cfg *cfg, uint8_t reg, uint8_t value) |
| uint8_t | adc128d818_init (sensor_cfg *cfg) |
| #define ADC128_REG_CONFIG 0x00 |
| #define ADC128_REG_CONFIG_ADV 0x0b |
| #define ADC128_REG_IN | ( | nr | ) | (0x20 + (nr)) |
| #define ADC128_VREF 2.56 |
| uint8_t adc128d818_init | ( | sensor_cfg * | cfg | ) |

| uint8_t adc128d818_read | ( | sensor_cfg * | cfg, |
| int * | reading | ||
| ) |

| uint8_t adc128d818_write | ( | sensor_cfg * | cfg, |
| uint8_t | reg, | ||
| uint8_t | value | ||
| ) |

| LOG_MODULE_REGISTER | ( | adc128d818 | ) |