34 #include "mraa/gpio.h" 54 mraa_gpio_context cs_ee;
55 mraa_gpio_context cs_adc;
57 float coeff_matrix[RSC_COEFF_T_ROW_NO][RSC_COEFF_T_COL_NO];
61 float min_pressure_val;
62 RSC_DATA_RATE data_rate;
upm_result_t rsc_setup_adc(rsc_context dev, uint8_t *adc_init_values)
Definition: rsc.c:461
struct _rsc_context * rsc_context
float rsc_get_pressure_range(rsc_context dev)
Definition: rsc.c:185
upm_result_t rsc_get_sensor_serial_number(rsc_context dev, uint8_t *rsc_number)
Definition: rsc.c:174
float rsc_get_minimum_pressure(rsc_context dev)
Definition: rsc.c:198
PRESSURE_U rsc_get_pressure_unit(rsc_context dev)
Definition: rsc.c:211
upm_result_t rsc_close(rsc_context dev)
Definition: rsc.c:124
upm_result_t rsc_retrieve_coefficients(rsc_context dev)
Definition: rsc.c:278
float rsc_get_pressure(rsc_context dev)
Definition: rsc.c:431
upm_result_t rsc_get_sensor_name(rsc_context dev, uint8_t *sensor_name)
Definition: rsc.c:163
upm_result_t rsc_get_initial_adc_values(rsc_context dev, uint8_t *adc_init_values)
Definition: rsc.c:264
upm_result_t rsc_set_data_rate(rsc_context dev, RSC_DATA_RATE dr)
Definition: rsc.c:334
float rsc_get_temperature(rsc_context dev)
Definition: rsc.c:418
PRESSURE_T rsc_get_pressure_type(rsc_context dev)
Definition: rsc.c:240
upm_result_t rsc_set_mode(rsc_context dev, RSC_MODE mode)
Definition: rsc.c:361
rsc_context rsc_init(int bus, int cs_ee_pin, int cs_adc_pin)
Definition: rsc.c:37