jvsveml6070
Version:
Node.js package for the Vishay VEML6070 UVA Light Sensor, written in TypeScript.
38 lines (37 loc) • 1.28 kB
TypeScript
import { IntegrationTime, UvIndex } from './module';
export declare class SensorValue {
/**
* The raw value.
*/
readonly rawValue: number;
/**
* The normalized value.
* This is the raw value divided by the integration time multiplier, resulting in the 1T value.
*/
readonly normalizedValue: number;
/**
* The UV index data.
* Calculated based on the data in the Application Note.
*
* @see {@link https://www.vishay.com/docs/84310/designingveml6070.pdf|Vishay VEML6070 Application Note}, page 5.
*/
readonly uvIndex: UvIndex;
/**
* Creates a new `SensorValue` instance.
*
* @param rawValue - The raw value.
* @param normalizedValue - The normalized value.
* @param uvIndex - The `UvIndex` instance.
*/
constructor(rawValue: number, normalizedValue: number, uvIndex: UvIndex);
/**
* Creates a new `SensorValue` instance from a raw value.
*
* @param rSet - The RSET value (in kΩ).
* @param integrationTime - The `IntegrationTime` instance.
* @param rawValue - The raw value.
*
* @returns The `SensorValue` instance.
*/
static fromRawValue(rSet: number, integrationTime: IntegrationTime, rawValue: number): SensorValue;
}