OpenBIC
OpenSource Bridge-IC
ina238.h File Reference
#include <stdint.h>
#include "sensor.h"
Include dependency graph for ina238.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _ina238_init_arg
 

Typedefs

typedef struct _ina238_init_arg ina238_init_arg
 

Enumerations

enum  INA238_OFFSET {
  INA238_CFG_OFFSET = 0x00 , INA238_ADC_CFG_OFFSET = 0x01 , INA238_SHUNT_CAL_OFFSET = 0x02 , INA238_VSHUNT_OFFSET = 0x04 ,
  INA238_VBUS_OFFSET = 0x05 , INA238_DIETEMP_OFFSET = 0x06 , INA238_CUR_OFFSET = 0x07 , INA238_PWR_OFFSET = 0x08 ,
  INA238_DIAG_ALRT_OFFSET = 0x0B , INA238_SOVL_OFFSET = 0x0C , INA238_SUVL_OFFSET = 0x0D , INA238_BOVL_OFFSET = 0x0E ,
  INA238_BUVL_OFFSET = 0x0F , INA238_TEMP_LIMIT_OFFSET = 0x10 , INA238_PWR_LIMIT_OFFSET = 0x11 , INA238_MANUFACTURER_ID_OFFSET = 0x3E ,
  INA238_DEVICE_ID_OFFSET = 0x3F
}
 
enum  INA238_ADC_RANGE { INA238_ADC_RANGE_PN_163 = 0x00 , INA238_ADC_RANGE_PN_40 = 0x10 }
 
enum  INA238_ALERT_LATCH { INA238_ALERT_LATCH_DISABLE , INA238_ALERT_LATCH_ENABLE }
 

Typedef Documentation

◆ ina238_init_arg

Enumeration Type Documentation

◆ INA238_ADC_RANGE

Enumerator
INA238_ADC_RANGE_PN_163 
INA238_ADC_RANGE_PN_40 

◆ INA238_ALERT_LATCH

Enumerator
INA238_ALERT_LATCH_DISABLE 
INA238_ALERT_LATCH_ENABLE 

◆ INA238_OFFSET

Enumerator
INA238_CFG_OFFSET 
INA238_ADC_CFG_OFFSET 
INA238_SHUNT_CAL_OFFSET 
INA238_VSHUNT_OFFSET 
INA238_VBUS_OFFSET 
INA238_DIETEMP_OFFSET 
INA238_CUR_OFFSET 
INA238_PWR_OFFSET 
INA238_DIAG_ALRT_OFFSET 
INA238_SOVL_OFFSET 
INA238_SUVL_OFFSET 
INA238_BOVL_OFFSET 
INA238_BUVL_OFFSET 
INA238_TEMP_LIMIT_OFFSET 
INA238_PWR_LIMIT_OFFSET 
INA238_MANUFACTURER_ID_OFFSET 
INA238_DEVICE_ID_OFFSET