upm/include/fti/upm_ec.h

36 lines
836 B
C
Raw Normal View History

/*
* Author: Jon Trulson <jtrulson@ics.com>
* 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_EC_H_
#define UPM_EC_H_
#include "upm_types.h"
#ifdef __cplusplus
extern "C" {
#endif
/* EC (Electrical Conductivity) function table */
typedef struct _upm_ec_ft
{
/* Set sensor offset */
upm_result_t (*upm_ec_set_offset) (const void* dev, float offset);
/* Set sensor scale */
upm_result_t (*upm_ec_set_scale) (const void* dev, float scale);
/* Read sensor value */
upm_result_t (*upm_ec_get_value) (const void* dev, float *value);
} upm_ec_ft;
#ifdef __cplusplus
}
#endif
#endif /* UPM_EC_H_ */