Table of Contents

Struct Opt3001Reading

Namespace
Pamoja.Sensors
Assembly
Pamoja.Sensors.dll

An OPT3001 illuminance result.

public readonly record struct Opt3001Reading : IEquatable<Opt3001Reading>
Implements
Inherited Members

Constructors

Opt3001Reading(ushort, uint, float)

An OPT3001 illuminance result.

public Opt3001Reading(ushort Raw, uint MilliLux, float Lux)

Parameters

Raw ushort

The result register: a four-bit exponent over a twelve-bit mantissa.

MilliLux uint

The illuminance in millilux, exact in integers.

Lux float

The illuminance in lux.

Properties

Lux

The illuminance in lux.

public float Lux { get; init; }

Property Value

float

MilliLux

The illuminance in millilux, exact in integers.

public uint MilliLux { get; init; }

Property Value

uint

Raw

The result register: a four-bit exponent over a twelve-bit mantissa.

public ushort Raw { get; init; }

Property Value

ushort