Mihai Tudor Panu 89d5de43e0 license: update to SPDX style license text throughout
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2020-03-05 15:13:36 -08:00

36 lines
844 B
C

/*
* Authors:
* Copyright (c) 2016 Intel Corporation.
*
* This program and the accompanying materials are made available under the
* terms of the The MIT License which is available at
* https://opensource.org/licenses/MIT.
*
* SPDX-License-Identifier: MIT
*/
#ifndef UPM_LIGHT_H_
#define UPM_LIGHT_H_
#include "upm_types.h"
#ifdef __cplusplus
extern "C" {
#endif
/* pH function table */
typedef struct _upm_light_ft
{
/* Set sensor offset in raw counts */
upm_result_t (*upm_light_set_offset) (const void* dev, float offset);
/* Set sensor scale in raw counts */
upm_result_t (*upm_light_set_scale) (const void* dev, float scale);
/* Read sensor value, return lux */
upm_result_t (*upm_light_get_value) (const void* dev, float* value);
} upm_light_ft;
#ifdef __cplusplus
}
#endif
#endif /* UPM_LIGHT_H_ */