Home
last modified time | relevance | path

Searched refs:data_from_sensor (Results 1 – 1 of 1) sorted by relevance

/hardware/bsp/intel/peripheral/libupm/src/pulsensor/
Dpulsensor.cxx85 int data_from_sensor; in do_sample() local
91 data_from_sensor = pulsensor->pin_ctx.read (); in do_sample()
97 if (data_from_sensor < pulsensor->threshold && in do_sample()
99 if (data_from_sensor < pulsensor->trough) { in do_sample()
100 pulsensor->trough = data_from_sensor; in do_sample()
104 if (data_from_sensor > pulsensor->threshold && in do_sample()
105 data_from_sensor > pulsensor->peak) { in do_sample()
106 pulsensor->peak = data_from_sensor; in do_sample()
111 if ( (data_from_sensor > pulsensor->threshold) && in do_sample()
154 if (data_from_sensor < pulsensor->threshold && in do_sample()