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

Classes

struct  VOLTAGE_FULL_SCALE_RANGE_INFO
 

Macros

#define LTC4282_METER_HALT_BIT   5
 
#define LTC4282_METER_RESET_BIT   6
 

Enumerations

enum  { SET_BIT = 0 , CLEAR_BIT }
 

Functions

 LOG_MODULE_REGISTER (dev_ltc4282)
 
uint8_t ltc4282_read (sensor_cfg *cfg, int *reading)
 
uint8_t ltc4282_init (sensor_cfg *cfg)
 

Variables

struct VOLTAGE_FULL_SCALE_RANGE_INFO FOLDBACK_MODE_TABLE [4]
 

Macro Definition Documentation

◆ LTC4282_METER_HALT_BIT

#define LTC4282_METER_HALT_BIT   5

◆ LTC4282_METER_RESET_BIT

#define LTC4282_METER_RESET_BIT   6

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
SET_BIT 
CLEAR_BIT 

Function Documentation

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( dev_ltc4282  )

◆ ltc4282_init()

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

◆ ltc4282_read()

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

Variable Documentation

◆ FOLDBACK_MODE_TABLE

struct VOLTAGE_FULL_SCALE_RANGE_INFO FOLDBACK_MODE_TABLE[4]
Initial value:
= { { 0x0, 5.547 },
{ 0x1, 8.32 },
{ 0x2, 16.64 },
{ 0x3, 33.28 } }