upm/include/fti/upm_pressure.h

30 lines
737 B
C
Raw Normal View History

/*
* Authors: 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_PRESSURE_H_
#define UPM_PRESSURE_H_
#ifdef __cplusplus
extern "C" {
#endif
// Pressure function table
typedef struct _upm_pressure_ft {
upm_result_t (*upm_pressure_set_scale) (void* dev, float scale);
upm_result_t (*upm_pressure_set_offset) (void* dev, float offset);
upm_result_t (*upm_pressure_get_value) (void* dev, float* value);
} upm_pressure_ft;
#ifdef __cplusplus
}
#endif
#endif /* UPM_PRESSURE_H_ */