|
OpenBIC
OpenSource Bridge-IC
|
#include <stdio.h>#include <string.h>#include <sensor.h>#include "libutil.h"#include "plat_hook.h"#include "plat_i2c.h"#include <logging/log.h>
Macros | |
| #define | VOLTAGE_SELECT_BIT (1 << 2) |
| #define | ADC_16BIT_MODE_BIT (1 << 0) |
| #define | ADC_16BIT_MODE_DELAY_MS 1100 |
| #define | ADC_12BIT_MODE_DELAY_MS 100 |
Functions | |
| LOG_MODULE_REGISTER (plat_hook) | |
| bool | pre_ltc4282_read (sensor_cfg *cfg, void *args) |
Variables | |
| adc_asd_init_arg | adc_asd_init_args [] = { [0] = { .is_init = false } } |
| adm1278_init_arg | adm1278_init_args [] |
| ltc4282_init_arg | ltc4282_init_args [] = { [0] = { .is_init = false, .r_sense_mohm = 0.1 } } |
| ltc4282_pre_proc_arg | ltc4282_pre_read_args [] |
| #define ADC_12BIT_MODE_DELAY_MS 100 |
| #define ADC_16BIT_MODE_BIT (1 << 0) |
| #define ADC_16BIT_MODE_DELAY_MS 1100 |
| #define VOLTAGE_SELECT_BIT (1 << 2) |
| LOG_MODULE_REGISTER | ( | plat_hook | ) |
| bool pre_ltc4282_read | ( | sensor_cfg * | cfg, |
| void * | args | ||
| ) |

| adc_asd_init_arg adc_asd_init_args[] = { [0] = { .is_init = false } } |
| adm1278_init_arg adm1278_init_args[] |
| ltc4282_init_arg ltc4282_init_args[] = { [0] = { .is_init = false, .r_sense_mohm = 0.1 } } |
| ltc4282_pre_proc_arg ltc4282_pre_read_args[] |