OpenBIC
OpenSource Bridge-IC
_sq52205_init_arg_ Struct Reference

#include <sensor.h>

Public Attributes

bool is_init
 
float current_lsb
 
float r_shunt
 
union {
   uint16_t   value
 
   struct {
      uint16_t   operating_mode: 3
 
      uint16_t   shunt_volt_time: 3
 
      uint16_t   bus_volt_time: 3
 
      uint16_t   aver_mode: 3
 
      uint16_t   rsvd: 3
 
      uint16_t   reset_bit: 1
 
   } 
 
config
 
bool is_need_accum_config_init
 
union {
   uint16_t   value
 
   struct {
      uint8_t   clear_ein: 1
 
      uint8_t   switch_ein_mode: 1
 
      uint8_t   rsvd: 5
 
      uint8_t   timer: 3
 
      uint8_t   ein_auto_clear: 1
 
      uint8_t   switch_adc_mode: 1
 
      uint8_t   ein_accum: 2
 
      uint8_t   accum_mode: 1
 
      uint8_t   ein_status: 1
 
   } 
 
accum_config
 
bool is_need_set_alert_threshold
 
union {
   uint8_t   value
 
   struct {
      uint8_t   power_over_bit: 1
 
      uint8_t   bus_voltage_uv: 1
 
      uint8_t   bus_voltage_ov: 1
 
      uint8_t   shunt_voltage_uv: 1
 
      uint8_t   shunt_voltage_ov: 1
 
      uint8_t   resv: 3
 
   } 
 
alert_mask_config
 
uint16_t alert_threshold
 

Member Data Documentation

◆ 

union { ... } _sq52205_init_arg_::accum_config

◆ accum_mode

uint8_t _sq52205_init_arg_::accum_mode

◆ 

union { ... } _sq52205_init_arg_::alert_mask_config

◆ alert_threshold

uint16_t _sq52205_init_arg_::alert_threshold

◆ aver_mode

uint16_t _sq52205_init_arg_::aver_mode

◆ bus_volt_time

uint16_t _sq52205_init_arg_::bus_volt_time

◆ bus_voltage_ov

uint8_t _sq52205_init_arg_::bus_voltage_ov

◆ bus_voltage_uv

uint8_t _sq52205_init_arg_::bus_voltage_uv

◆ clear_ein

uint8_t _sq52205_init_arg_::clear_ein

◆ 

union { ... } _sq52205_init_arg_::config

◆ current_lsb

float _sq52205_init_arg_::current_lsb

◆ ein_accum

uint8_t _sq52205_init_arg_::ein_accum

◆ ein_auto_clear

uint8_t _sq52205_init_arg_::ein_auto_clear

◆ ein_status

uint8_t _sq52205_init_arg_::ein_status

◆ is_init

bool _sq52205_init_arg_::is_init

◆ is_need_accum_config_init

bool _sq52205_init_arg_::is_need_accum_config_init

◆ is_need_set_alert_threshold

bool _sq52205_init_arg_::is_need_set_alert_threshold

◆ operating_mode

uint16_t _sq52205_init_arg_::operating_mode

◆ power_over_bit

uint8_t _sq52205_init_arg_::power_over_bit

◆ r_shunt

float _sq52205_init_arg_::r_shunt

◆ reset_bit

uint16_t _sq52205_init_arg_::reset_bit

◆ resv

uint8_t _sq52205_init_arg_::resv

◆ rsvd [1/2]

uint16_t _sq52205_init_arg_::rsvd

◆ rsvd [2/2]

uint8_t _sq52205_init_arg_::rsvd

◆ shunt_volt_time

uint16_t _sq52205_init_arg_::shunt_volt_time

◆ shunt_voltage_ov

uint8_t _sq52205_init_arg_::shunt_voltage_ov

◆ shunt_voltage_uv

uint8_t _sq52205_init_arg_::shunt_voltage_uv

◆ switch_adc_mode

uint8_t _sq52205_init_arg_::switch_adc_mode

◆ switch_ein_mode

uint8_t _sq52205_init_arg_::switch_ein_mode

◆ timer

uint8_t _sq52205_init_arg_::timer

◆ value [1/2]

uint16_t _sq52205_init_arg_::value

◆ value [2/2]

uint8_t _sq52205_init_arg_::value

The documentation for this struct was generated from the following file: