Qwiic_NAU7802_Py  2.0.0
Python for SFE Qwiic NAU7802
Loading...
Searching...
No Matches
qwiic_nau7802.QwiicNAU7802 Class Reference
Inheritance diagram for qwiic_nau7802.QwiicNAU7802:

Public Member Functions

def __init__ (self, address=None, i2c_driver=None)
 Constructor. More...
 
def is_connected (self)
 Determines if this device is connected. More...
 
def begin (self)
 Initializes this device with default parameters. More...
 
def available (self)
 Gets whether data is available. More...
 
def calibrate_afe (self)
 Calibrate analog front end. More...
 
def begin_calibrate_afe (self)
 Begin asycnhronous calibration of the analog front end. More...
 
def cal_afe_status (self)
 Returns calibration status of analog front end. More...
 
def wait_for_calibrate_afe (self, timeout_ms=0)
 Wait for asynchronous AFE calibration to complete with optional timeout. More...
 
def set_sample_rate (self, rate)
 Set sample rate in Hz. More...
 
def set_channel (self, channel_number)
 Select between channel 1 and 2. More...
 
def power_up (self)
 Power up digital and analog sections of scale. More...
 
def power_down (self)
 Puts scale into low-power mode. More...
 
def reset (self)
 Resets all registers to power off defaults. More...
 
def set_ldo (self, ldo_value)
 Sets the onboard low-drop-out voltage regulator to a given value. More...
 
def set_gain (self, gain_value)
 Sets the gain. More...
 
def get_revision_code (self)
 Gets the revision code of this IC. More...
 
def get_reading (self)
 Returns 24-bit reading. More...
 
def get_average (self, average_amount, timeout_ms=1000)
 Return the average of a given number of readings. More...
 
def calculate_zero_offset (self, average_amount)
 Calculates and stores zero offset measurement. More...
 
def set_zero_offset (self, new_zero_offset)
 Sets zero offset mesaurement. More...
 
def get_zero_offset (self)
 Gets the current zero offset. More...
 
def calculate_calibration_factor (self, weight_on_scale, average_amount)
 Calculates and stores calibration factor. More...
 
def set_calibration_factor (self, new_cal_factor)
 Sets calibration factor. More...
 
def get_calibration_factor (self)
 Gets the current calibration factor. More...
 
def get_weight (self, allow_negative_weights=False, samples_to_take=8)
 Gets the weight on the scale using the zero offset and calibration factor, so those must be set before using this. More...
 
def set_int_polarity_high (self)
 Set interrupt pin to be high when data is ready (default) More...
 
def set_int_polarity_low (self)
 Set interrupt pin to be low when data is ready. More...
 
def set_bit (self, bit_number, register_address)
 Mask & set a given bit within a register. More...
 
def clear_bit (self, bit_number, register_address)
 Mask & clear a given bit within a register. More...
 
def get_bit (self, bit_number, register_address)
 Return a given bit within a register. More...
 
def get_register (self, register_address)
 Get contents of a register. More...
 
def set_register (self, register_address, value)
 Send a given value to be written to given address. More...
 
def millis (self)
 Get the current time in milliseconds. More...
 

Public Attributes

 address
 

Static Public Attributes

 device_name = _DEFAULT_NAME
 
 available_addresses = _AVAILABLE_I2C_ADDRESS
 
int NAU7802_PU_CTRL = 0x00
 
int NAU7802_CTRL1 = 0x01
 
int NAU7802_CTRL2 = 0x02
 
int NAU7802_OCAL1_B2 = 0x03
 
int NAU7802_OCAL1_B1 = 0x04
 
int NAU7802_OCAL1_B0 = 0x05
 
int NAU7802_GCAL1_B3 = 0x06
 
int NAU7802_GCAL1_B2 = 0x07
 
int NAU7802_GCAL1_B1 = 0x08
 
int NAU7802_GCAL1_B0 = 0x09
 
int NAU7802_OCAL2_B2 = 0x0A
 
int NAU7802_OCAL2_B1 = 0x0B
 
int NAU7802_OCAL2_B0 = 0x0C
 
int NAU7802_GCAL2_B3 = 0x0D
 
int NAU7802_GCAL2_B2 = 0x0E
 
int NAU7802_GCAL2_B1 = 0x0F
 
int NAU7802_GCAL2_B0 = 0x10
 
int NAU7802_I2C_CONTROL = 0x11
 
int NAU7802_ADCO_B2 = 0x12
 
int NAU7802_ADCO_B1 = 0x13
 
int NAU7802_ADCO_B0 = 0x14
 
int NAU7802_ADC = 0x15
 
int NAU7802_OTP_B1 = 0x16
 
int NAU7802_OTP_B0 = 0x17
 
int NAU7802_PGA = 0x1B
 
int NAU7802_PGA_PWR = 0x1C
 
int NAU7802_DEVICE_REV = 0x1F
 
int NAU7802_PU_CTRL_RR = 0
 
int NAU7802_PU_CTRL_PUD = 1
 
int NAU7802_PU_CTRL_PUA = 2
 
int NAU7802_PU_CTRL_PUR = 3
 
int NAU7802_PU_CTRL_CS = 4
 
int NAU7802_PU_CTRL_CR = 5
 
int NAU7802_PU_CTRL_OSCS = 6
 
int NAU7802_PU_CTRL_AVDDS = 7
 
int NAU7802_CTRL1_GAIN = 2
 
int NAU7802_CTRL1_VLDO = 5
 
int NAU7802_CTRL1_DRDY_SEL = 6
 
int NAU7802_CTRL1_CRP = 7
 
int NAU7802_CTRL2_CALMOD = 0
 
int NAU7802_CTRL2_CALS = 2
 
int NAU7802_CTRL2_CAL_ERROR = 3
 
int NAU7802_CTRL2_CRS = 4
 
int NAU7802_CTRL2_CHS = 7
 
int NAU7802_PGA_CHP_DIS = 0
 
int NAU7802_PGA_INV = 3
 
int NAU7802_PGA_BYPASS_EN = 4
 
int NAU7802_PGA_OUT_EN = 5
 
int NAU7802_PGA_LDOMODE = 6
 
int NAU7802_PGA_RD_OTP_SEL = 7
 
int NAU7802_PGA_PWR_PGA_CURR = 0
 
int NAU7802_PGA_PWR_ADC_CURR = 2
 
int NAU7802_PGA_PWR_MSTR_BIAS_CURR = 4
 
int NAU7802_PGA_PWR_PGA_CAP_EN = 7
 
int NAU7802_LDO_2V4 = 0b111
 
int NAU7802_LDO_2V7 = 0b110
 
int NAU7802_LDO_3V0 = 0b101
 
int NAU7802_LDO_3V3 = 0b100
 
int NAU7802_LDO_3V6 = 0b011
 
int NAU7802_LDO_3V9 = 0b010
 
int NAU7802_LDO_4V2 = 0b001
 
int NAU7802_LDO_4V5 = 0b000
 
int NAU7802_GAIN_128 = 0b111
 
int NAU7802_GAIN_64 = 0b110
 
int NAU7802_GAIN_32 = 0b101
 
int NAU7802_GAIN_16 = 0b100
 
int NAU7802_GAIN_8 = 0b011
 
int NAU7802_GAIN_4 = 0b010
 
int NAU7802_GAIN_2 = 0b001
 
int NAU7802_GAIN_1 = 0b000
 
int NAU7802_SPS_320 = 0b111
 
int NAU7802_SPS_80 = 0b011
 
int NAU7802_SPS_40 = 0b010
 
int NAU7802_SPS_20 = 0b001
 
int NAU7802_SPS_10 = 0b000
 
int NAU7802_CHANNEL_1 = 0
 
int NAU7802_CHANNEL_2 = 1
 
int NAU7802_CAL_SUCCESS = 0
 
int NAU7802_CAL_IN_PROGRESS = 1
 
int NAU7802_CAL_FAILURE = 2
 

Properties

 connected = property(is_connected)
 

Constructor & Destructor Documentation

◆ __init__()

def qwiic_nau7802.QwiicNAU7802.__init__ (   self,
  address = None,
  i2c_driver = None 
)

Constructor.

Parameters
int,optionaladdress: The I2C address to use for the device If not provided, the default address is used
I2CDriver,optionali2c_driver: An existing i2c driver object If not provided, a driver object is created

Member Function Documentation

◆ available()

def qwiic_nau7802.QwiicNAU7802.available (   self)

Gets whether data is available.

Returns
bool True if data is available, otherwise False

◆ begin()

def qwiic_nau7802.QwiicNAU7802.begin (   self)

Initializes this device with default parameters.

Returns
bool Returns True if successful, otherwise False

◆ begin_calibrate_afe()

def qwiic_nau7802.QwiicNAU7802.begin_calibrate_afe (   self)

Begin asycnhronous calibration of the analog front end.

Poll for completion with calAFEStatus() or wait with waitForCalibrateAFE()

◆ cal_afe_status()

def qwiic_nau7802.QwiicNAU7802.cal_afe_status (   self)

Returns calibration status of analog front end.

Returns
int Calibration status. Can be NAU7802_CAL_IN_PROGRESS, NAU7802_CAL_SUCCESS, or NAU7802_CAL_FAILURE

◆ calculate_calibration_factor()

def qwiic_nau7802.QwiicNAU7802.calculate_calibration_factor (   self,
  weight_on_scale,
  average_amount 
)

Calculates and stores calibration factor.

Must only be called after zero offset has been set, and when a known weight is on the scale.

Parameters
floatweight_on_scale: Weight currently on the scale, without units
intaverage_amount: Number of measurements to average

◆ calculate_zero_offset()

def qwiic_nau7802.QwiicNAU7802.calculate_zero_offset (   self,
  average_amount 
)

Calculates and stores zero offset measurement.

Must only be called when zero weight is on the scale

Parameters
intaverage_amount: Number of measurements to average

◆ calibrate_afe()

def qwiic_nau7802.QwiicNAU7802.calibrate_afe (   self)

Calibrate analog front end.

Takes approximatly 344ms to calibrate, but wait up to 1000ms. It is recommended to recalibrate whenever the gain, sample rate, or channel number is changed

Returns
bool True if successful, otherwise False

◆ clear_bit()

def qwiic_nau7802.QwiicNAU7802.clear_bit (   self,
  bit_number,
  register_address 
)

Mask & clear a given bit within a register.

Parameters
intbit_number: Bit index to clear
intregister_address: Register address

◆ get_average()

def qwiic_nau7802.QwiicNAU7802.get_average (   self,
  average_amount,
  timeout_ms = 1000 
)

Return the average of a given number of readings.

Gives up after timeout

Parameters
intaverage_amount: Number of measurements to average
int,optionaltimeout_ms: Timeout in milliseconds, defaults to 1000
Returns
float Average measurement value

◆ get_bit()

def qwiic_nau7802.QwiicNAU7802.get_bit (   self,
  bit_number,
  register_address 
)

Return a given bit within a register.

Parameters
intbit_number: Bit index to get
intregister_address: Register address
Returns
bool Bit value

◆ get_calibration_factor()

def qwiic_nau7802.QwiicNAU7802.get_calibration_factor (   self)

Gets the current calibration factor.

Returns
float Current calibration factor

◆ get_reading()

def qwiic_nau7802.QwiicNAU7802.get_reading (   self)

Returns 24-bit reading.

Assumes available() has been checked and returned True

Returns
int Raw 24-bit reading

◆ get_register()

def qwiic_nau7802.QwiicNAU7802.get_register (   self,
  register_address 
)

Get contents of a register.

Parameters
intregister_address: Register address
Returns
int Register value

◆ get_revision_code()

def qwiic_nau7802.QwiicNAU7802.get_revision_code (   self)

Gets the revision code of this IC.

Should be 0x0F

Returns
int Revision code

◆ get_weight()

def qwiic_nau7802.QwiicNAU7802.get_weight (   self,
  allow_negative_weights = False,
  samples_to_take = 8 
)

Gets the weight on the scale using the zero offset and calibration factor, so those must be set before using this.

Uses a simple linear calculation following y=mx+b

Parameters
bool,optionalallow_negative_weights: Whether negative weights are allowed, defaults to False
int,optionalsamples_to_take: Number of measurements to average, defaults to 8
Returns
float Weight on the scale

◆ get_zero_offset()

def qwiic_nau7802.QwiicNAU7802.get_zero_offset (   self)

Gets the current zero offset.

Returns
float Current zero offset

◆ is_connected()

def qwiic_nau7802.QwiicNAU7802.is_connected (   self)

Determines if this device is connected.

Returns
bool True if connected, otherwise False

◆ millis()

def qwiic_nau7802.QwiicNAU7802.millis (   self)

Get the current time in milliseconds.

Returns
int Current time in milliseconds

◆ power_down()

def qwiic_nau7802.QwiicNAU7802.power_down (   self)

Puts scale into low-power mode.

◆ power_up()

def qwiic_nau7802.QwiicNAU7802.power_up (   self)

Power up digital and analog sections of scale.

Returns
bool True if successful, otherwise False

◆ reset()

def qwiic_nau7802.QwiicNAU7802.reset (   self)

Resets all registers to power off defaults.

◆ set_bit()

def qwiic_nau7802.QwiicNAU7802.set_bit (   self,
  bit_number,
  register_address 
)

Mask & set a given bit within a register.

Parameters
intbit_number: Bit index to set
intregister_address: Register address

◆ set_calibration_factor()

def qwiic_nau7802.QwiicNAU7802.set_calibration_factor (   self,
  new_cal_factor 
)

Sets calibration factor.

Useful if the calibration factor has already been calculated

Parameters
floatnew_cal_factor: Calibration factor

◆ set_channel()

def qwiic_nau7802.QwiicNAU7802.set_channel (   self,
  channel_number 
)

Select between channel 1 and 2.

Parameters
intchannel_number: Channel number. Can be NAU7802_CHANNEL_1 or NAU7802_CHANNEL_2

◆ set_gain()

def qwiic_nau7802.QwiicNAU7802.set_gain (   self,
  gain_value 
)

Sets the gain.

Parameters
intgain_value: Gain. Can be NAU7802_GAIN_1, NAU7802_GAIN_2, NAU7802_GAIN_4, NAU7802_GAIN_8, NAU7802_GAIN_16, NAU7802_GAIN_32, NAU7802_GAIN_64, or NAU7802_GAIN_128

◆ set_int_polarity_high()

def qwiic_nau7802.QwiicNAU7802.set_int_polarity_high (   self)

Set interrupt pin to be high when data is ready (default)

◆ set_int_polarity_low()

def qwiic_nau7802.QwiicNAU7802.set_int_polarity_low (   self)

Set interrupt pin to be low when data is ready.

◆ set_ldo()

def qwiic_nau7802.QwiicNAU7802.set_ldo (   self,
  ldo_value 
)

Sets the onboard low-drop-out voltage regulator to a given value.

Parameters
intldo_value: LDO voltage. Can be NAU7802_LDO_2V4, NAU7802_LDO_2V7, NAU7802_LDO_3V0, NAU7802_LDO_3V3, NAU7802_LDO_3V6, NAU7802_LDO_3V9, NAU7802_LDO_4V2, or NAU7802_LDO_4V5

◆ set_register()

def qwiic_nau7802.QwiicNAU7802.set_register (   self,
  register_address,
  value 
)

Send a given value to be written to given address.

Parameters
intregister_address: Register address
intvalue: Register value

◆ set_sample_rate()

def qwiic_nau7802.QwiicNAU7802.set_sample_rate (   self,
  rate 
)

Set sample rate in Hz.

Parameters
intrate: Sample rate in Hz. Can be NAU7802_SPS_10, NAU7802_SPS_20, NAU7802_SPS_40, NAU7802_SPS_80, or NAU7802_SPS_320

◆ set_zero_offset()

def qwiic_nau7802.QwiicNAU7802.set_zero_offset (   self,
  new_zero_offset 
)

Sets zero offset mesaurement.

Useful if the zero offset has already been calculated

Parameters
floatnew_zero_offset: Zero offset

◆ wait_for_calibrate_afe()

def qwiic_nau7802.QwiicNAU7802.wait_for_calibrate_afe (   self,
  timeout_ms = 0 
)

Wait for asynchronous AFE calibration to complete with optional timeout.

If timeout is not specified (or set to 0), then wait indefinitely.

Parameters
int,optionaltimeout_ms: Timeout in ms, defaults to 0
Returns
bool True if successful, otherwise False

Member Data Documentation

◆ address

qwiic_nau7802.QwiicNAU7802.address

◆ available_addresses

qwiic_nau7802.QwiicNAU7802.available_addresses = _AVAILABLE_I2C_ADDRESS
static

◆ device_name

qwiic_nau7802.QwiicNAU7802.device_name = _DEFAULT_NAME
static

◆ NAU7802_ADC

int qwiic_nau7802.QwiicNAU7802.NAU7802_ADC = 0x15
static

◆ NAU7802_ADCO_B0

int qwiic_nau7802.QwiicNAU7802.NAU7802_ADCO_B0 = 0x14
static

◆ NAU7802_ADCO_B1

int qwiic_nau7802.QwiicNAU7802.NAU7802_ADCO_B1 = 0x13
static

◆ NAU7802_ADCO_B2

int qwiic_nau7802.QwiicNAU7802.NAU7802_ADCO_B2 = 0x12
static

◆ NAU7802_CAL_FAILURE

int qwiic_nau7802.QwiicNAU7802.NAU7802_CAL_FAILURE = 2
static

◆ NAU7802_CAL_IN_PROGRESS

int qwiic_nau7802.QwiicNAU7802.NAU7802_CAL_IN_PROGRESS = 1
static

◆ NAU7802_CAL_SUCCESS

int qwiic_nau7802.QwiicNAU7802.NAU7802_CAL_SUCCESS = 0
static

◆ NAU7802_CHANNEL_1

int qwiic_nau7802.QwiicNAU7802.NAU7802_CHANNEL_1 = 0
static

◆ NAU7802_CHANNEL_2

int qwiic_nau7802.QwiicNAU7802.NAU7802_CHANNEL_2 = 1
static

◆ NAU7802_CTRL1

int qwiic_nau7802.QwiicNAU7802.NAU7802_CTRL1 = 0x01
static

◆ NAU7802_CTRL1_CRP

int qwiic_nau7802.QwiicNAU7802.NAU7802_CTRL1_CRP = 7
static

◆ NAU7802_CTRL1_DRDY_SEL

int qwiic_nau7802.QwiicNAU7802.NAU7802_CTRL1_DRDY_SEL = 6
static

◆ NAU7802_CTRL1_GAIN

int qwiic_nau7802.QwiicNAU7802.NAU7802_CTRL1_GAIN = 2
static

◆ NAU7802_CTRL1_VLDO

int qwiic_nau7802.QwiicNAU7802.NAU7802_CTRL1_VLDO = 5
static

◆ NAU7802_CTRL2

int qwiic_nau7802.QwiicNAU7802.NAU7802_CTRL2 = 0x02
static

◆ NAU7802_CTRL2_CAL_ERROR

int qwiic_nau7802.QwiicNAU7802.NAU7802_CTRL2_CAL_ERROR = 3
static

◆ NAU7802_CTRL2_CALMOD

int qwiic_nau7802.QwiicNAU7802.NAU7802_CTRL2_CALMOD = 0
static

◆ NAU7802_CTRL2_CALS

int qwiic_nau7802.QwiicNAU7802.NAU7802_CTRL2_CALS = 2
static

◆ NAU7802_CTRL2_CHS

int qwiic_nau7802.QwiicNAU7802.NAU7802_CTRL2_CHS = 7
static

◆ NAU7802_CTRL2_CRS

int qwiic_nau7802.QwiicNAU7802.NAU7802_CTRL2_CRS = 4
static

◆ NAU7802_DEVICE_REV

int qwiic_nau7802.QwiicNAU7802.NAU7802_DEVICE_REV = 0x1F
static

◆ NAU7802_GAIN_1

int qwiic_nau7802.QwiicNAU7802.NAU7802_GAIN_1 = 0b000
static

◆ NAU7802_GAIN_128

int qwiic_nau7802.QwiicNAU7802.NAU7802_GAIN_128 = 0b111
static

◆ NAU7802_GAIN_16

int qwiic_nau7802.QwiicNAU7802.NAU7802_GAIN_16 = 0b100
static

◆ NAU7802_GAIN_2

int qwiic_nau7802.QwiicNAU7802.NAU7802_GAIN_2 = 0b001
static

◆ NAU7802_GAIN_32

int qwiic_nau7802.QwiicNAU7802.NAU7802_GAIN_32 = 0b101
static

◆ NAU7802_GAIN_4

int qwiic_nau7802.QwiicNAU7802.NAU7802_GAIN_4 = 0b010
static

◆ NAU7802_GAIN_64

int qwiic_nau7802.QwiicNAU7802.NAU7802_GAIN_64 = 0b110
static

◆ NAU7802_GAIN_8

int qwiic_nau7802.QwiicNAU7802.NAU7802_GAIN_8 = 0b011
static

◆ NAU7802_GCAL1_B0

int qwiic_nau7802.QwiicNAU7802.NAU7802_GCAL1_B0 = 0x09
static

◆ NAU7802_GCAL1_B1

int qwiic_nau7802.QwiicNAU7802.NAU7802_GCAL1_B1 = 0x08
static

◆ NAU7802_GCAL1_B2

int qwiic_nau7802.QwiicNAU7802.NAU7802_GCAL1_B2 = 0x07
static

◆ NAU7802_GCAL1_B3

int qwiic_nau7802.QwiicNAU7802.NAU7802_GCAL1_B3 = 0x06
static

◆ NAU7802_GCAL2_B0

int qwiic_nau7802.QwiicNAU7802.NAU7802_GCAL2_B0 = 0x10
static

◆ NAU7802_GCAL2_B1

int qwiic_nau7802.QwiicNAU7802.NAU7802_GCAL2_B1 = 0x0F
static

◆ NAU7802_GCAL2_B2

int qwiic_nau7802.QwiicNAU7802.NAU7802_GCAL2_B2 = 0x0E
static

◆ NAU7802_GCAL2_B3

int qwiic_nau7802.QwiicNAU7802.NAU7802_GCAL2_B3 = 0x0D
static

◆ NAU7802_I2C_CONTROL

int qwiic_nau7802.QwiicNAU7802.NAU7802_I2C_CONTROL = 0x11
static

◆ NAU7802_LDO_2V4

int qwiic_nau7802.QwiicNAU7802.NAU7802_LDO_2V4 = 0b111
static

◆ NAU7802_LDO_2V7

int qwiic_nau7802.QwiicNAU7802.NAU7802_LDO_2V7 = 0b110
static

◆ NAU7802_LDO_3V0

int qwiic_nau7802.QwiicNAU7802.NAU7802_LDO_3V0 = 0b101
static

◆ NAU7802_LDO_3V3

int qwiic_nau7802.QwiicNAU7802.NAU7802_LDO_3V3 = 0b100
static

◆ NAU7802_LDO_3V6

int qwiic_nau7802.QwiicNAU7802.NAU7802_LDO_3V6 = 0b011
static

◆ NAU7802_LDO_3V9

int qwiic_nau7802.QwiicNAU7802.NAU7802_LDO_3V9 = 0b010
static

◆ NAU7802_LDO_4V2

int qwiic_nau7802.QwiicNAU7802.NAU7802_LDO_4V2 = 0b001
static

◆ NAU7802_LDO_4V5

int qwiic_nau7802.QwiicNAU7802.NAU7802_LDO_4V5 = 0b000
static

◆ NAU7802_OCAL1_B0

int qwiic_nau7802.QwiicNAU7802.NAU7802_OCAL1_B0 = 0x05
static

◆ NAU7802_OCAL1_B1

int qwiic_nau7802.QwiicNAU7802.NAU7802_OCAL1_B1 = 0x04
static

◆ NAU7802_OCAL1_B2

int qwiic_nau7802.QwiicNAU7802.NAU7802_OCAL1_B2 = 0x03
static

◆ NAU7802_OCAL2_B0

int qwiic_nau7802.QwiicNAU7802.NAU7802_OCAL2_B0 = 0x0C
static

◆ NAU7802_OCAL2_B1

int qwiic_nau7802.QwiicNAU7802.NAU7802_OCAL2_B1 = 0x0B
static

◆ NAU7802_OCAL2_B2

int qwiic_nau7802.QwiicNAU7802.NAU7802_OCAL2_B2 = 0x0A
static

◆ NAU7802_OTP_B0

int qwiic_nau7802.QwiicNAU7802.NAU7802_OTP_B0 = 0x17
static

◆ NAU7802_OTP_B1

int qwiic_nau7802.QwiicNAU7802.NAU7802_OTP_B1 = 0x16
static

◆ NAU7802_PGA

int qwiic_nau7802.QwiicNAU7802.NAU7802_PGA = 0x1B
static

◆ NAU7802_PGA_BYPASS_EN

int qwiic_nau7802.QwiicNAU7802.NAU7802_PGA_BYPASS_EN = 4
static

◆ NAU7802_PGA_CHP_DIS

int qwiic_nau7802.QwiicNAU7802.NAU7802_PGA_CHP_DIS = 0
static

◆ NAU7802_PGA_INV

int qwiic_nau7802.QwiicNAU7802.NAU7802_PGA_INV = 3
static

◆ NAU7802_PGA_LDOMODE

int qwiic_nau7802.QwiicNAU7802.NAU7802_PGA_LDOMODE = 6
static

◆ NAU7802_PGA_OUT_EN

int qwiic_nau7802.QwiicNAU7802.NAU7802_PGA_OUT_EN = 5
static

◆ NAU7802_PGA_PWR

int qwiic_nau7802.QwiicNAU7802.NAU7802_PGA_PWR = 0x1C
static

◆ NAU7802_PGA_PWR_ADC_CURR

int qwiic_nau7802.QwiicNAU7802.NAU7802_PGA_PWR_ADC_CURR = 2
static

◆ NAU7802_PGA_PWR_MSTR_BIAS_CURR

int qwiic_nau7802.QwiicNAU7802.NAU7802_PGA_PWR_MSTR_BIAS_CURR = 4
static

◆ NAU7802_PGA_PWR_PGA_CAP_EN

int qwiic_nau7802.QwiicNAU7802.NAU7802_PGA_PWR_PGA_CAP_EN = 7
static

◆ NAU7802_PGA_PWR_PGA_CURR

int qwiic_nau7802.QwiicNAU7802.NAU7802_PGA_PWR_PGA_CURR = 0
static

◆ NAU7802_PGA_RD_OTP_SEL

int qwiic_nau7802.QwiicNAU7802.NAU7802_PGA_RD_OTP_SEL = 7
static

◆ NAU7802_PU_CTRL

int qwiic_nau7802.QwiicNAU7802.NAU7802_PU_CTRL = 0x00
static

◆ NAU7802_PU_CTRL_AVDDS

int qwiic_nau7802.QwiicNAU7802.NAU7802_PU_CTRL_AVDDS = 7
static

◆ NAU7802_PU_CTRL_CR

int qwiic_nau7802.QwiicNAU7802.NAU7802_PU_CTRL_CR = 5
static

◆ NAU7802_PU_CTRL_CS

int qwiic_nau7802.QwiicNAU7802.NAU7802_PU_CTRL_CS = 4
static

◆ NAU7802_PU_CTRL_OSCS

int qwiic_nau7802.QwiicNAU7802.NAU7802_PU_CTRL_OSCS = 6
static

◆ NAU7802_PU_CTRL_PUA

int qwiic_nau7802.QwiicNAU7802.NAU7802_PU_CTRL_PUA = 2
static

◆ NAU7802_PU_CTRL_PUD

int qwiic_nau7802.QwiicNAU7802.NAU7802_PU_CTRL_PUD = 1
static

◆ NAU7802_PU_CTRL_PUR

int qwiic_nau7802.QwiicNAU7802.NAU7802_PU_CTRL_PUR = 3
static

◆ NAU7802_PU_CTRL_RR

int qwiic_nau7802.QwiicNAU7802.NAU7802_PU_CTRL_RR = 0
static

◆ NAU7802_SPS_10

int qwiic_nau7802.QwiicNAU7802.NAU7802_SPS_10 = 0b000
static

◆ NAU7802_SPS_20

int qwiic_nau7802.QwiicNAU7802.NAU7802_SPS_20 = 0b001
static

◆ NAU7802_SPS_320

int qwiic_nau7802.QwiicNAU7802.NAU7802_SPS_320 = 0b111
static

◆ NAU7802_SPS_40

int qwiic_nau7802.QwiicNAU7802.NAU7802_SPS_40 = 0b010
static

◆ NAU7802_SPS_80

int qwiic_nau7802.QwiicNAU7802.NAU7802_SPS_80 = 0b011
static

Property Documentation

◆ connected

qwiic_nau7802.QwiicNAU7802.connected = property(is_connected)
static

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