ConstThe address the part answers on with ADDR tied to GND.
The address it answers on with ADDR tied to SCL.
The address it answers on with ADDR tied to SDA.
The address it answers on with ADDR tied to VDD.
The value the configuration register reads after a reset.
The value the device-ID register reads, which confirms the part.
The value the high-limit register holds after a reset.
The low-limit value that turns the INT pin into an end-of-conversion signal.
The value the low-limit register holds after a reset.
The value the manufacturer-ID register reads.
The range number that lets the part choose its own full scale.
The highest fixed range number.
The registers a driver reads and writes.
The configuration register.
The device-ID register.
The high limit.
The low limit.
The manufacturer-ID register.
The result register.
Assembles the 16-bit configuration register value.
The read-only status fields are written as zero.
The settings to encode.
The register value to write.
Parses a 16-bit configuration register value.
The register value, as read from the device.
The decoded settings, status flags included.
Returns the full scale a range number covers.
The range, 0 to 11.
The full scale in milli-lux, or null for a reserved range.
Reports whether a range number lets the part choose its own full scale.
The range field of the configuration register.
Whether the range is set to automatic.
Returns the illuminance one count carries at a given exponent.
The result's exponent field, 0 to 11.
The step in milli-lux, or null for a reserved exponent.
Converts a raw result register to lux.
The register value.
The illuminance.
Converts a raw result register to milli-lux.
The register value, exponent and mantissa together.
The illuminance, exact in integer arithmetic.
Builds the result register that reports an illuminance.
The inverse of milliLux, using the smallest exponent that fits and truncating the mantissa the way the part does.
The illuminance.
The register value, saturating at the part's full scale.
Builds the two bytes a register is written as.
The register value.
The register, most significant byte first.
A TI OPT3001 ambient light sensor with a human-eye response.