Qwiic_AS726x_Py  2.0.0-1-gba196a5
Python for SFE Qwiic AS726x
Loading...
Searching...
No Matches
qwiic_as726x.QwiicAS726x Class Reference
Inheritance diagram for qwiic_as726x.QwiicAS726x:

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, gain=kGain64x, measurementMode=kMeasurementMode6ChanOneShot)
 Initializes this device with default parameters. More...
 
def take_measurements (self)
 Tells IC to take measurements and polls for data ready flag. More...
 
def get_version (self)
 Get the version of the sensor. More...
 
def take_measurements_with_bulb (self)
 Turns on bulb, takes measurements, turns off bulb. More...
 
def get_temperature (self, device)
 Returns the temperature of a given device in Celsius. More...
 
def get_temperature_f (self)
 Returns the temperature of a given device in Fahrenheit. More...
 
def set_measurement_mode (self, mode)
 Sets the measurement mode. More...
 
def get_measurement_mode (self)
 Get the measurement mode. More...
 
def data_available (self)
 Check if the data ready flag is set in the control setup register. More...
 
def enable_indicator (self)
 Enable the onboard indicator LED. More...
 
def disable_indicator (self)
 Disable the onboard indicator LED. More...
 
def set_indicator_current (self, current)
 Set the current limit of onboard LED. More...
 
def enable_bulb (self)
 Enable the LED or bulb on a given device. More...
 
def disable_bulb (self)
 Disable the LED or bulb on a given device. More...
 
def set_bulb_current (self, current)
 Set the current for the specified LED. More...
 
def set_gain (self, gain)
 Sets the gain value Gain 0: 1x (power-on default) Gain 1: 3.7x Gain 2: 16x Gain 3: 64x. More...
 
def get_gain (self)
 Get the gain value. More...
 
def soft_reset (self)
 Does a soft reset. More...
 
def set_integration_time (self, integrationValue)
 Sets the integration cycle amount. More...
 
def get_integration_time (self)
 Get the integration time. More...
 
def enable_interrupt (self)
 Enable the interrupt pin. More...
 
def disable_interrupt (self)
 Disable the interrupt pin. More...
 
def get_violet (self)
 
def get_blue (self)
 
def get_green (self)
 
def get_yellow (self)
 
def get_orange (self)
 
def get_red (self)
 
def get_r (self)
 
def get_s (self)
 
def get_t (self)
 
def get_u (self)
 
def get_v (self)
 
def get_w (self)
 
def get_x (self)
 
def get_y (self)
 
def get_z (self)
 
def get_nir (self)
 
def get_dark (self)
 
def get_clear (self)
 
def get_calibrated_violet (self)
 
def get_calibrated_blue (self)
 
def get_calibrated_green (self)
 
def get_calibrated_yellow (self)
 
def get_calibrated_orange (self)
 
def get_calibrated_red (self)
 
def get_calibrated_r (self)
 
def get_calibrated_s (self)
 
def get_calibrated_t (self)
 
def get_calibrated_u (self)
 
def get_calibrated_v (self)
 
def get_calibrated_w (self)
 
def get_calibrated_x (self)
 
def get_calibrated_y (self)
 
def get_calibrated_z (self)
 
def get_calibrated_x1931 (self)
 
def get_calibrated_y1931 (self)
 
def get_calibrated_upri1976 (self)
 
def get_calibrated_vpri1976 (self)
 
def get_calibrated_u1976 (self)
 
def get_calibrated_v1976 (self)
 
def get_calibrated_duv1976 (self)
 
def get_calibrated_lux (self)
 
def get_calibrated_cct (self)
 
def get_channel (self, channelReg)
 Get the value of a channel. More...
 
def get_calibrated_value (self, calAddress)
 Given an address, read four bytes and return the floating point calibrated value. More...
 
def convert_bytes_to_float (self, myLong)
 Convert a 4-byte value containing the bytes of a float respresentation of a number to a float value. More...
 
def clear_data_available (self)
 Clear the data ready flag in the config register. More...
 
def virtual_read_register (self, virtualAddr)
 Read a virtual register from the AS726x. More...
 
def virtual_write_register (self, virtualAddr, dataToWrite)
 Write a virtual register to the AS726x. More...
 

Public Attributes

 address
 
 kTxValid
 

Static Public Attributes

 device_name = _DEFAULT_NAME
 
 available_addresses = _AVAILABLE_I2C_ADDRESS
 
int kStatusReg = 0x00
 
int kWriteReg = 0x01
 
int kReadReg = 0x02
 
int kTxValid = 0x02
 
int kRxValid = 0x01
 
int kDeviceType = 0x00
 
int kHwVersion = 0x01
 
int kConfig = 0x04
 
int kIntegrationTime = 0x05
 
int kDeviceTemp = 0x06
 
int kLedConfig = 0x07
 
int kAs7262V = 0x08
 
int kAs7262B = 0x0A
 
int kAs7262G = 0x0C
 
int kAs7262Y = 0x0E
 
int kAs7262O = 0x10
 
int kAs7262R = 0x12
 
int kAs7262VCal = 0x14
 
int kAs7262BCal = 0x18
 
int kAs7262GCal = 0x1C
 
int kAs7262YCal = 0x20
 
int kAs7262OCal = 0x24
 
int kAs7262RCal = 0x28
 
int kAs7263R = 0x08
 
int kAs7263S = 0x0A
 
int kAs7263T = 0x0C
 
int kAs7263U = 0x0E
 
int kAs7263V = 0x10
 
int kAs7263W = 0x12
 
int kAs7263RCal = 0x14
 
int kAs7263SCal = 0x18
 
int kAs7263TCal = 0x1C
 
int kAs7263UCal = 0x20
 
int kAs7263VCal = 0x24
 
int kAs7263WCal = 0x28
 
int kAs7261X = 0x08
 
int kAs7261Y = 0x0A
 
int kAs7261Z = 0x0C
 
int kAs7261Nir = 0x0E
 
int kAs7261Dark = 0x10
 
int kAs7261Clear = 0x12
 
int kAs7261XCal = 0x14
 
int kAs7261YCal = 0x18
 
int kAs7261ZCal = 0x1C
 
int kAs7261X1931Cal = 0x20
 
int kAs7261Y1931Cal = 0x24
 
int kAs7261UpriCal = 0x28
 
int kAs7261VpriCal = 0x2C
 
int kAs7261UCal = 0x30
 
int kAs7261VCal = 0x34
 
int kAs7261DuvCal = 0x38
 
int kAs7261LuxCal = 0x3C
 
int kAs7261CctCal = 0x3E
 
int kSensorTypeAs7261 = 0x3D
 
int kSensorTypeAs7262 = 0x3E
 
int kSensorTypeAs7263 = 0x3F
 
int kPollingDelay = 5
 
int kMaxRetries = 3
 
int kTimeout = 3000
 
int kConfigSRSTShift = 7
 
int kConfigSRSTMask = 0b1 << kConfigSRSTShift
 
int kConfigIntShift = 6
 
int kConfigIntMask = 0b1 << kConfigIntShift
 
int kConfigGainShift = 4
 
int kConfigGainMask = 0b11 << kConfigGainShift
 
int kConfigModeShift = 2
 
int kConfigModeMask = 0b11 << kConfigModeShift
 
int kConfigDataReadyShift = 1
 
int kConfigDataReadyMask = 0b1 << kConfigDataReadyShift
 
int kConfigFRSTShift = 0
 
int kConfigFRSTMask = 0b1 << kConfigFRSTShift
 
int kLedConfigLedDrvShift = 4
 
int kLedConfigLedDrvMask = 0b11 << kLedConfigLedDrvShift
 
int kLedConfigLedEnableShift = 3
 
int kLedConfigLedEnableMask = 0b1 << kLedConfigLedEnableShift
 
int kLedConfigIndCurrentShift = 1
 
int kLedConfigIndCurrentMask = 0b11 << kLedConfigIndCurrentShift
 
int kLedConfigIndEnableShift = 0
 
int kLedConfigIndEnableMask = 0b1 << kLedConfigIndEnableShift
 
int kLedCurrentLimit12_5mA = 0b00
 
int kLedCurrentLimit25mA = 0b01
 
int kLedCurrentLimit50mA = 0b10
 
int kLedCurrentLimit100mA = 0b11
 
int kIndicatorCurrentLimit1mA = 0b00
 
int kIndicatorCurrentLimit2mA = 0b01
 
int kIndicatorCurrentLimit4mA = 0b10
 
int kIndicatorCurrentLimit8mA = 0b11
 
int kGain1x = 0b00
 
int kGain37x = 0b01
 
int kGain16x = 0b10
 
int kGain64x = 0b11
 
int kMeasurementMode4Chan = 0b00
 
int kMeasurementMode4Chan2 = 0b01
 
int kMeasurementMode6ChanContinuous = 0b10
 
int kMeasurementMode6ChanOneShot = 0b11
 

Properties

 connected = property(is_connected)
 

Constructor & Destructor Documentation

◆ __init__()

def qwiic_as726x.QwiicAS726x.__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

◆ begin()

def qwiic_as726x.QwiicAS726x.begin (   self,
  gain = kGain64x,
  measurementMode = kMeasurementMode6ChanOneShot 
)

Initializes this device with default parameters.

Returns
bool Returns True if successful, otherwise False

◆ clear_data_available()

def qwiic_as726x.QwiicAS726x.clear_data_available (   self)

Clear the data ready flag in the config register.

◆ convert_bytes_to_float()

def qwiic_as726x.QwiicAS726x.convert_bytes_to_float (   self,
  myLong 
)

Convert a 4-byte value containing the bytes of a float respresentation of a number to a float value.

Parameters
intmyLong: The 4-byte value to convert
Returns
float The float value

◆ data_available()

def qwiic_as726x.QwiicAS726x.data_available (   self)

Check if the data ready flag is set in the control setup register.

Returns
bool True if the data ready flag is set, otherwise False

◆ disable_bulb()

def qwiic_as726x.QwiicAS726x.disable_bulb (   self)

Disable the LED or bulb on a given device.

◆ disable_indicator()

def qwiic_as726x.QwiicAS726x.disable_indicator (   self)

Disable the onboard indicator LED.

◆ disable_interrupt()

def qwiic_as726x.QwiicAS726x.disable_interrupt (   self)

Disable the interrupt pin.

◆ enable_bulb()

def qwiic_as726x.QwiicAS726x.enable_bulb (   self)

Enable the LED or bulb on a given device.

◆ enable_indicator()

def qwiic_as726x.QwiicAS726x.enable_indicator (   self)

Enable the onboard indicator LED.

◆ enable_interrupt()

def qwiic_as726x.QwiicAS726x.enable_interrupt (   self)

Enable the interrupt pin.

◆ get_blue()

def qwiic_as726x.QwiicAS726x.get_blue (   self)

◆ get_calibrated_blue()

def qwiic_as726x.QwiicAS726x.get_calibrated_blue (   self)

◆ get_calibrated_cct()

def qwiic_as726x.QwiicAS726x.get_calibrated_cct (   self)

◆ get_calibrated_duv1976()

def qwiic_as726x.QwiicAS726x.get_calibrated_duv1976 (   self)

◆ get_calibrated_green()

def qwiic_as726x.QwiicAS726x.get_calibrated_green (   self)

◆ get_calibrated_lux()

def qwiic_as726x.QwiicAS726x.get_calibrated_lux (   self)

◆ get_calibrated_orange()

def qwiic_as726x.QwiicAS726x.get_calibrated_orange (   self)

◆ get_calibrated_r()

def qwiic_as726x.QwiicAS726x.get_calibrated_r (   self)

◆ get_calibrated_red()

def qwiic_as726x.QwiicAS726x.get_calibrated_red (   self)

◆ get_calibrated_s()

def qwiic_as726x.QwiicAS726x.get_calibrated_s (   self)

◆ get_calibrated_t()

def qwiic_as726x.QwiicAS726x.get_calibrated_t (   self)

◆ get_calibrated_u()

def qwiic_as726x.QwiicAS726x.get_calibrated_u (   self)

◆ get_calibrated_u1976()

def qwiic_as726x.QwiicAS726x.get_calibrated_u1976 (   self)

◆ get_calibrated_upri1976()

def qwiic_as726x.QwiicAS726x.get_calibrated_upri1976 (   self)

◆ get_calibrated_v()

def qwiic_as726x.QwiicAS726x.get_calibrated_v (   self)

◆ get_calibrated_v1976()

def qwiic_as726x.QwiicAS726x.get_calibrated_v1976 (   self)

◆ get_calibrated_value()

def qwiic_as726x.QwiicAS726x.get_calibrated_value (   self,
  calAddress 
)

Given an address, read four bytes and return the floating point calibrated value.

Parameters
intcalAddress: The address to read the calibrated value from
Returns
float The calibrated value

◆ get_calibrated_violet()

def qwiic_as726x.QwiicAS726x.get_calibrated_violet (   self)

◆ get_calibrated_vpri1976()

def qwiic_as726x.QwiicAS726x.get_calibrated_vpri1976 (   self)

◆ get_calibrated_w()

def qwiic_as726x.QwiicAS726x.get_calibrated_w (   self)

◆ get_calibrated_x()

def qwiic_as726x.QwiicAS726x.get_calibrated_x (   self)

◆ get_calibrated_x1931()

def qwiic_as726x.QwiicAS726x.get_calibrated_x1931 (   self)

◆ get_calibrated_y()

def qwiic_as726x.QwiicAS726x.get_calibrated_y (   self)

◆ get_calibrated_y1931()

def qwiic_as726x.QwiicAS726x.get_calibrated_y1931 (   self)

◆ get_calibrated_yellow()

def qwiic_as726x.QwiicAS726x.get_calibrated_yellow (   self)

◆ get_calibrated_z()

def qwiic_as726x.QwiicAS726x.get_calibrated_z (   self)

◆ get_channel()

def qwiic_as726x.QwiicAS726x.get_channel (   self,
  channelReg 
)

Get the value of a channel.

Parameters
intchannel_register: The register to read the channel from

◆ get_clear()

def qwiic_as726x.QwiicAS726x.get_clear (   self)

◆ get_dark()

def qwiic_as726x.QwiicAS726x.get_dark (   self)

◆ get_gain()

def qwiic_as726x.QwiicAS726x.get_gain (   self)

Get the gain value.

Returns
int The gain value

◆ get_green()

def qwiic_as726x.QwiicAS726x.get_green (   self)

◆ get_integration_time()

def qwiic_as726x.QwiicAS726x.get_integration_time (   self)

Get the integration time.

Returns
int The integration time

◆ get_measurement_mode()

def qwiic_as726x.QwiicAS726x.get_measurement_mode (   self)

Get the measurement mode.

Returns
int The measurement mode

Allowable mode values are:

  • kMeasurementMode4Chan
  • kMeasurementMode4Chan2
  • kMeasurementMode6ChanContinuous
  • kMeasurementMode6ChanOneShot

◆ get_nir()

def qwiic_as726x.QwiicAS726x.get_nir (   self)

◆ get_orange()

def qwiic_as726x.QwiicAS726x.get_orange (   self)

◆ get_r()

def qwiic_as726x.QwiicAS726x.get_r (   self)

◆ get_red()

def qwiic_as726x.QwiicAS726x.get_red (   self)

◆ get_s()

def qwiic_as726x.QwiicAS726x.get_s (   self)

◆ get_t()

def qwiic_as726x.QwiicAS726x.get_t (   self)

◆ get_temperature()

def qwiic_as726x.QwiicAS726x.get_temperature (   self,
  device 
)

Returns the temperature of a given device in Celsius.

Parameters
intdevice: The device to get the temperature from

◆ get_temperature_f()

def qwiic_as726x.QwiicAS726x.get_temperature_f (   self)

Returns the temperature of a given device in Fahrenheit.

Parameters
intdevice: The device to get the temperature from

◆ get_u()

def qwiic_as726x.QwiicAS726x.get_u (   self)

◆ get_v()

def qwiic_as726x.QwiicAS726x.get_v (   self)

◆ get_version()

def qwiic_as726x.QwiicAS726x.get_version (   self)

Get the version of the sensor.

Value is only valid after a call to begin()

Returns
int The version of the sensor

◆ get_violet()

def qwiic_as726x.QwiicAS726x.get_violet (   self)

◆ get_w()

def qwiic_as726x.QwiicAS726x.get_w (   self)

◆ get_x()

def qwiic_as726x.QwiicAS726x.get_x (   self)

◆ get_y()

def qwiic_as726x.QwiicAS726x.get_y (   self)

◆ get_yellow()

def qwiic_as726x.QwiicAS726x.get_yellow (   self)

◆ get_z()

def qwiic_as726x.QwiicAS726x.get_z (   self)

◆ is_connected()

def qwiic_as726x.QwiicAS726x.is_connected (   self)

Determines if this device is connected.

Returns
bool True if connected, otherwise False

◆ set_bulb_current()

def qwiic_as726x.QwiicAS726x.set_bulb_current (   self,
  current 
)

Set the current for the specified LED.

Parameters
intcurrent: The current to set the LED to

Allowable current values are:

  • kLedCurrentLimit12_5mA
  • kLedCurrentLimit25mA
  • kLedCurrentLimit50mA
  • kLedCurrentLimit100mA

◆ set_gain()

def qwiic_as726x.QwiicAS726x.set_gain (   self,
  gain 
)

Sets the gain value Gain 0: 1x (power-on default) Gain 1: 3.7x Gain 2: 16x Gain 3: 64x.

Parameters
intgain: The gain value to set

◆ set_indicator_current()

def qwiic_as726x.QwiicAS726x.set_indicator_current (   self,
  current 
)

Set the current limit of onboard LED.

Default is max 8mA = 0b11.

Parameters
intcurrent: The current limit to set the indicator LED to

Allowable current values are:

  • kIndicatorCurrentLimit1mA
  • kIndicatorCurrentLimit2mA
  • kIndicatorCurrentLimit4mA
  • kIndicatorCurrentLimit8mA

◆ set_integration_time()

def qwiic_as726x.QwiicAS726x.set_integration_time (   self,
  integrationValue 
)

Sets the integration cycle amount.

Give this function a byte from 0 to 255. Time will be 2.8ms * [integration cycles + 1]

Parameters
intintegrationValue: The number of integration cycles to set

◆ set_measurement_mode()

def qwiic_as726x.QwiicAS726x.set_measurement_mode (   self,
  mode 
)

Sets the measurement mode.

Mode 0: 4 channels out of 6 (see datasheet) Mode 1: Different 4 channels out of 6 (see datasheet) Mode 2: All 6 channels continuously Mode 3: One-shot reading of all channels

Parameters
intmode: The mode to set

Allowable mode values are:

  • kMeasurementMode4Chan
  • kMeasurementMode4Chan2
  • kMeasurementMode6ChanContinuous
  • kMeasurementMode6ChanOneShot

◆ soft_reset()

def qwiic_as726x.QwiicAS726x.soft_reset (   self)

Does a soft reset.

Give sensor at least 1000ms to reset

◆ take_measurements()

def qwiic_as726x.QwiicAS726x.take_measurements (   self)

Tells IC to take measurements and polls for data ready flag.

Returns
True if successful, otherwise False

◆ take_measurements_with_bulb()

def qwiic_as726x.QwiicAS726x.take_measurements_with_bulb (   self)

Turns on bulb, takes measurements, turns off bulb.

NOTE: We don't turn on the indicator as it is red and may corrupt the readings

◆ virtual_read_register()

def qwiic_as726x.QwiicAS726x.virtual_read_register (   self,
  virtualAddr 
)

Read a virtual register from the AS726x.

Parameters
intvirtualAddr: The virtual register address to read
Returns
int The value read from the register or -1 if an error occurred

◆ virtual_write_register()

def qwiic_as726x.QwiicAS726x.virtual_write_register (   self,
  virtualAddr,
  dataToWrite 
)

Write a virtual register to the AS726x.

Parameters
intvirtualAddr: The virtual register address to write
intdataToWrite: The value to write to the register
Returns
bool True if successful, otherwise False

Member Data Documentation

◆ address

qwiic_as726x.QwiicAS726x.address

◆ available_addresses

qwiic_as726x.QwiicAS726x.available_addresses = _AVAILABLE_I2C_ADDRESS
static

◆ device_name

qwiic_as726x.QwiicAS726x.device_name = _DEFAULT_NAME
static

◆ kAs7261CctCal

int qwiic_as726x.QwiicAS726x.kAs7261CctCal = 0x3E
static

◆ kAs7261Clear

int qwiic_as726x.QwiicAS726x.kAs7261Clear = 0x12
static

◆ kAs7261Dark

int qwiic_as726x.QwiicAS726x.kAs7261Dark = 0x10
static

◆ kAs7261DuvCal

int qwiic_as726x.QwiicAS726x.kAs7261DuvCal = 0x38
static

◆ kAs7261LuxCal

int qwiic_as726x.QwiicAS726x.kAs7261LuxCal = 0x3C
static

◆ kAs7261Nir

int qwiic_as726x.QwiicAS726x.kAs7261Nir = 0x0E
static

◆ kAs7261UCal

int qwiic_as726x.QwiicAS726x.kAs7261UCal = 0x30
static

◆ kAs7261UpriCal

int qwiic_as726x.QwiicAS726x.kAs7261UpriCal = 0x28
static

◆ kAs7261VCal

int qwiic_as726x.QwiicAS726x.kAs7261VCal = 0x34
static

◆ kAs7261VpriCal

int qwiic_as726x.QwiicAS726x.kAs7261VpriCal = 0x2C
static

◆ kAs7261X

int qwiic_as726x.QwiicAS726x.kAs7261X = 0x08
static

◆ kAs7261X1931Cal

int qwiic_as726x.QwiicAS726x.kAs7261X1931Cal = 0x20
static

◆ kAs7261XCal

int qwiic_as726x.QwiicAS726x.kAs7261XCal = 0x14
static

◆ kAs7261Y

int qwiic_as726x.QwiicAS726x.kAs7261Y = 0x0A
static

◆ kAs7261Y1931Cal

int qwiic_as726x.QwiicAS726x.kAs7261Y1931Cal = 0x24
static

◆ kAs7261YCal

int qwiic_as726x.QwiicAS726x.kAs7261YCal = 0x18
static

◆ kAs7261Z

int qwiic_as726x.QwiicAS726x.kAs7261Z = 0x0C
static

◆ kAs7261ZCal

int qwiic_as726x.QwiicAS726x.kAs7261ZCal = 0x1C
static

◆ kAs7262B

int qwiic_as726x.QwiicAS726x.kAs7262B = 0x0A
static

◆ kAs7262BCal

int qwiic_as726x.QwiicAS726x.kAs7262BCal = 0x18
static

◆ kAs7262G

int qwiic_as726x.QwiicAS726x.kAs7262G = 0x0C
static

◆ kAs7262GCal

int qwiic_as726x.QwiicAS726x.kAs7262GCal = 0x1C
static

◆ kAs7262O

int qwiic_as726x.QwiicAS726x.kAs7262O = 0x10
static

◆ kAs7262OCal

int qwiic_as726x.QwiicAS726x.kAs7262OCal = 0x24
static

◆ kAs7262R

int qwiic_as726x.QwiicAS726x.kAs7262R = 0x12
static

◆ kAs7262RCal

int qwiic_as726x.QwiicAS726x.kAs7262RCal = 0x28
static

◆ kAs7262V

int qwiic_as726x.QwiicAS726x.kAs7262V = 0x08
static

◆ kAs7262VCal

int qwiic_as726x.QwiicAS726x.kAs7262VCal = 0x14
static

◆ kAs7262Y

int qwiic_as726x.QwiicAS726x.kAs7262Y = 0x0E
static

◆ kAs7262YCal

int qwiic_as726x.QwiicAS726x.kAs7262YCal = 0x20
static

◆ kAs7263R

int qwiic_as726x.QwiicAS726x.kAs7263R = 0x08
static

◆ kAs7263RCal

int qwiic_as726x.QwiicAS726x.kAs7263RCal = 0x14
static

◆ kAs7263S

int qwiic_as726x.QwiicAS726x.kAs7263S = 0x0A
static

◆ kAs7263SCal

int qwiic_as726x.QwiicAS726x.kAs7263SCal = 0x18
static

◆ kAs7263T

int qwiic_as726x.QwiicAS726x.kAs7263T = 0x0C
static

◆ kAs7263TCal

int qwiic_as726x.QwiicAS726x.kAs7263TCal = 0x1C
static

◆ kAs7263U

int qwiic_as726x.QwiicAS726x.kAs7263U = 0x0E
static

◆ kAs7263UCal

int qwiic_as726x.QwiicAS726x.kAs7263UCal = 0x20
static

◆ kAs7263V

int qwiic_as726x.QwiicAS726x.kAs7263V = 0x10
static

◆ kAs7263VCal

int qwiic_as726x.QwiicAS726x.kAs7263VCal = 0x24
static

◆ kAs7263W

int qwiic_as726x.QwiicAS726x.kAs7263W = 0x12
static

◆ kAs7263WCal

int qwiic_as726x.QwiicAS726x.kAs7263WCal = 0x28
static

◆ kConfig

int qwiic_as726x.QwiicAS726x.kConfig = 0x04
static

◆ kConfigDataReadyMask

int qwiic_as726x.QwiicAS726x.kConfigDataReadyMask = 0b1 << kConfigDataReadyShift
static

◆ kConfigDataReadyShift

int qwiic_as726x.QwiicAS726x.kConfigDataReadyShift = 1
static

◆ kConfigFRSTMask

int qwiic_as726x.QwiicAS726x.kConfigFRSTMask = 0b1 << kConfigFRSTShift
static

◆ kConfigFRSTShift

int qwiic_as726x.QwiicAS726x.kConfigFRSTShift = 0
static

◆ kConfigGainMask

int qwiic_as726x.QwiicAS726x.kConfigGainMask = 0b11 << kConfigGainShift
static

◆ kConfigGainShift

int qwiic_as726x.QwiicAS726x.kConfigGainShift = 4
static

◆ kConfigIntMask

int qwiic_as726x.QwiicAS726x.kConfigIntMask = 0b1 << kConfigIntShift
static

◆ kConfigIntShift

int qwiic_as726x.QwiicAS726x.kConfigIntShift = 6
static

◆ kConfigModeMask

int qwiic_as726x.QwiicAS726x.kConfigModeMask = 0b11 << kConfigModeShift
static

◆ kConfigModeShift

int qwiic_as726x.QwiicAS726x.kConfigModeShift = 2
static

◆ kConfigSRSTMask

int qwiic_as726x.QwiicAS726x.kConfigSRSTMask = 0b1 << kConfigSRSTShift
static

◆ kConfigSRSTShift

int qwiic_as726x.QwiicAS726x.kConfigSRSTShift = 7
static

◆ kDeviceTemp

int qwiic_as726x.QwiicAS726x.kDeviceTemp = 0x06
static

◆ kDeviceType

int qwiic_as726x.QwiicAS726x.kDeviceType = 0x00
static

◆ kGain16x

int qwiic_as726x.QwiicAS726x.kGain16x = 0b10
static

◆ kGain1x

int qwiic_as726x.QwiicAS726x.kGain1x = 0b00
static

◆ kGain37x

int qwiic_as726x.QwiicAS726x.kGain37x = 0b01
static

◆ kGain64x

int qwiic_as726x.QwiicAS726x.kGain64x = 0b11
static

◆ kHwVersion

int qwiic_as726x.QwiicAS726x.kHwVersion = 0x01
static

◆ kIndicatorCurrentLimit1mA

int qwiic_as726x.QwiicAS726x.kIndicatorCurrentLimit1mA = 0b00
static

◆ kIndicatorCurrentLimit2mA

int qwiic_as726x.QwiicAS726x.kIndicatorCurrentLimit2mA = 0b01
static

◆ kIndicatorCurrentLimit4mA

int qwiic_as726x.QwiicAS726x.kIndicatorCurrentLimit4mA = 0b10
static

◆ kIndicatorCurrentLimit8mA

int qwiic_as726x.QwiicAS726x.kIndicatorCurrentLimit8mA = 0b11
static

◆ kIntegrationTime

int qwiic_as726x.QwiicAS726x.kIntegrationTime = 0x05
static

◆ kLedConfig

int qwiic_as726x.QwiicAS726x.kLedConfig = 0x07
static

◆ kLedConfigIndCurrentMask

int qwiic_as726x.QwiicAS726x.kLedConfigIndCurrentMask = 0b11 << kLedConfigIndCurrentShift
static

◆ kLedConfigIndCurrentShift

int qwiic_as726x.QwiicAS726x.kLedConfigIndCurrentShift = 1
static

◆ kLedConfigIndEnableMask

int qwiic_as726x.QwiicAS726x.kLedConfigIndEnableMask = 0b1 << kLedConfigIndEnableShift
static

◆ kLedConfigIndEnableShift

int qwiic_as726x.QwiicAS726x.kLedConfigIndEnableShift = 0
static

◆ kLedConfigLedDrvMask

int qwiic_as726x.QwiicAS726x.kLedConfigLedDrvMask = 0b11 << kLedConfigLedDrvShift
static

◆ kLedConfigLedDrvShift

int qwiic_as726x.QwiicAS726x.kLedConfigLedDrvShift = 4
static

◆ kLedConfigLedEnableMask

int qwiic_as726x.QwiicAS726x.kLedConfigLedEnableMask = 0b1 << kLedConfigLedEnableShift
static

◆ kLedConfigLedEnableShift

int qwiic_as726x.QwiicAS726x.kLedConfigLedEnableShift = 3
static

◆ kLedCurrentLimit100mA

int qwiic_as726x.QwiicAS726x.kLedCurrentLimit100mA = 0b11
static

◆ kLedCurrentLimit12_5mA

int qwiic_as726x.QwiicAS726x.kLedCurrentLimit12_5mA = 0b00
static

◆ kLedCurrentLimit25mA

int qwiic_as726x.QwiicAS726x.kLedCurrentLimit25mA = 0b01
static

◆ kLedCurrentLimit50mA

int qwiic_as726x.QwiicAS726x.kLedCurrentLimit50mA = 0b10
static

◆ kMaxRetries

int qwiic_as726x.QwiicAS726x.kMaxRetries = 3
static

◆ kMeasurementMode4Chan

int qwiic_as726x.QwiicAS726x.kMeasurementMode4Chan = 0b00
static

◆ kMeasurementMode4Chan2

int qwiic_as726x.QwiicAS726x.kMeasurementMode4Chan2 = 0b01
static

◆ kMeasurementMode6ChanContinuous

int qwiic_as726x.QwiicAS726x.kMeasurementMode6ChanContinuous = 0b10
static

◆ kMeasurementMode6ChanOneShot

int qwiic_as726x.QwiicAS726x.kMeasurementMode6ChanOneShot = 0b11
static

◆ kPollingDelay

int qwiic_as726x.QwiicAS726x.kPollingDelay = 5
static

◆ kReadReg

int qwiic_as726x.QwiicAS726x.kReadReg = 0x02
static

◆ kRxValid

int qwiic_as726x.QwiicAS726x.kRxValid = 0x01
static

◆ kSensorTypeAs7261

int qwiic_as726x.QwiicAS726x.kSensorTypeAs7261 = 0x3D
static

◆ kSensorTypeAs7262

int qwiic_as726x.QwiicAS726x.kSensorTypeAs7262 = 0x3E
static

◆ kSensorTypeAs7263

int qwiic_as726x.QwiicAS726x.kSensorTypeAs7263 = 0x3F
static

◆ kStatusReg

int qwiic_as726x.QwiicAS726x.kStatusReg = 0x00
static

◆ kTimeout

int qwiic_as726x.QwiicAS726x.kTimeout = 3000
static

◆ kTxValid [1/2]

int qwiic_as726x.QwiicAS726x.kTxValid = 0x02
static

◆ kTxValid [2/2]

qwiic_as726x.QwiicAS726x.kTxValid

◆ kWriteReg

int qwiic_as726x.QwiicAS726x.kWriteReg = 0x01
static

Property Documentation

◆ connected

qwiic_as726x.QwiicAS726x.connected = property(is_connected)
static

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