upm/include/fti/upm_raw.h

36 lines
843 B
C
Raw Normal View History

/*
* 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_RAW_H_
#define UPM_RAW_H_
#include "upm_types.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Raw counts function table */
typedef struct _upm_raw_ft
{
/* Set sensor offset in raw counts */
upm_result_t (*upm_raw_set_offset) (const void* dev, float offset);
/* Set sensor scale in raw counts */
upm_result_t (*upm_raw_set_scale) (const void* dev, float scale);
/* Read sensor value, return raw counts */
upm_result_t (*upm_raw_get_value) (const void* dev, float* value);
} upm_raw_ft;
#ifdef __cplusplus
}
#endif
#endif /* UPM_RAW_H_ */