Home
last modified time | relevance | path

Searched refs:interval (Results 1 – 25 of 78) sorted by relevance

1234

/drivers/hdf_core/adapter/khdf/liteos_m/osal/src/
Dosal_timer.c44 uint32_t interval; member
47 int32_t OsalTimerCreate(OsalTimer *timer, uint32_t interval, OsalTimerFunc func, uintptr_t arg) in OsalTimerCreate() argument
51 if (func == NULL || timer == NULL || interval == 0) { in OsalTimerCreate()
66 liteTimer->interval = interval; in OsalTimerCreate()
75 uint32_t interval; in OsalStartTimer() local
85 if (liteTimer->interval == 0 || liteTimer->func == NULL) { in OsalStartTimer()
90 interval = liteTimer->interval; in OsalStartTimer()
93 … ret = LOS_SwtmrCreate(interval, mode, (SWTMR_PROC_FUNC)liteTimer->func, &timerID, liteTimer->arg, in OsalStartTimer()
96 … ret = LOS_SwtmrCreate(interval, mode, (SWTMR_PROC_FUNC)liteTimer->func, &timerID, liteTimer->arg); in OsalStartTimer()
127 int32_t OsalTimerSetTimeout(OsalTimer *timer, uint32_t interval) in OsalTimerSetTimeout() argument
[all …]
/drivers/hdf_core/adapter/khdf/liteos/osal/src/
Dosal_timer.c44 uint32_t interval; member
47 int32_t OsalTimerCreate(OsalTimer *timer, uint32_t interval, OsalTimerFunc func, uintptr_t arg) in OsalTimerCreate() argument
51 if (func == NULL || timer == NULL || interval == 0) { in OsalTimerCreate()
66 liteTimer->interval = interval; in OsalTimerCreate()
76 uint32_t interval; in OsalStartTimer() local
86 if (liteTimer->interval == 0 || liteTimer->func == NULL) { in OsalStartTimer()
91 interval = liteTimer->interval; in OsalStartTimer()
93 …ret = LOS_SwtmrCreate(LOS_MS2Tick(interval), mode, (SWTMR_PROC_FUNC)liteTimer->func, &timerID, lit… in OsalStartTimer()
123 int32_t OsalTimerSetTimeout(OsalTimer *timer, uint32_t interval) in OsalTimerSetTimeout() argument
129 if (timer == NULL || timer->realTimer == NULL || interval == 0) { in OsalTimerSetTimeout()
[all …]
/drivers/hdf_core/adapter/khdf/uniproton/osal/src/
Dosal_timer.c43 uint32_t interval; member
46 int32_t OsalTimerCreate(OsalTimer *timer, uint32_t interval, OsalTimerFunc func, uintptr_t arg) in OsalTimerCreate() argument
50 if (func == NULL || timer == NULL || interval == 0) { in OsalTimerCreate()
65 liteTimer->interval = interval; in OsalTimerCreate()
83 if (liteTimer->interval == 0 || liteTimer->func == NULL) { in OsalStartTimer()
90 timerPara.interval = liteTimer->interval; in OsalStartTimer()
120 int32_t OsalTimerSetTimeout(OsalTimer *timer, uint32_t interval) in OsalTimerSetTimeout() argument
125 if (timer == NULL || timer->realTimer == NULL || interval == 0) { in OsalTimerSetTimeout()
136 if (liteTimer->interval == interval) { in OsalTimerSetTimeout()
140 liteTimer->interval = interval; in OsalTimerSetTimeout()
/drivers/hdf_core/framework/test/unittest/sensor/
Dhdf_sensor_test.c31 .interval = SENSOR_TEST_SAMPLING_200_MS, in GetSensorTestDrvData()
58 int64_t interval; in SensorTestTimerEntry() local
66 interval = OsalDivS64(drvData->interval, (SENSOR_CONVERT_UNIT * SENSOR_CONVERT_UNIT)); in SensorTestTimerEntry()
67 interval = (interval < SENSOR_TIMER_MIN_TIME) ? SENSOR_TIMER_MIN_TIME : interval; in SensorTestTimerEntry()
69 if (OsalTimerSetTimeout(&drvData->timer, interval) != HDF_SUCCESS) { in SensorTestTimerEntry()
143 static int32_t SensorSetBatchTest(int64_t samplingInterval, int64_t interval) in SensorSetBatchTest() argument
146 (void)interval; in SensorSetBatchTest()
150 drvData->interval = samplingInterval; in SensorSetBatchTest()
Dhdf_sensor_test.h19 int64_t interval; member
/drivers/peripheral/camera/vdi_base/v4l2/src/stream_operator/
Dstream_statistics.cpp76 void StreamStatistics::CalculateFps(int interval) in CalculateFps() argument
78 if (interval > 0) { in CalculateFps()
79 fpsValue_ = (requestBufferSuccessCount_ - lastRequestBufferCount_) / interval; in CalculateFps()
86 void StreamStatistics::DumpStats(int interval) in DumpStats() argument
98 if (timestamp_.tv_sec - lastOutputTime_ > interval) { in DumpStats()
/drivers/hdf_core/adapter/khdf/linux/osal/src/
Dosal_timer.c81 int32_t OsalTimerCreate(OsalTimer *timer, uint32_t interval, OsalTimerFunc func, uintptr_t arg) in OsalTimerCreate() argument
85 if (func == NULL || timer == NULL || interval == 0) { in OsalTimerCreate()
99 ktimer->msec = interval; in OsalTimerCreate()
141 int32_t OsalTimerSetTimeout(OsalTimer *timer, uint32_t interval) in OsalTimerSetTimeout() argument
145 if (timer == NULL || timer->realTimer == NULL || interval == 0) { in OsalTimerSetTimeout()
151 if (ktimer->msec == interval) in OsalTimerSetTimeout()
155 ktimer->msec = interval; in OsalTimerSetTimeout()
/drivers/hdf_core/framework/model/sensor/driver/pedometer/
Dsensor_pedometer_driver.c64 int64_t interval; in PedometerTimerEntry() local
73 interval = OsalDivS64(drvData->interval, (SENSOR_CONVERT_UNIT * SENSOR_CONVERT_UNIT)); in PedometerTimerEntry()
74 interval = (interval < SENSOR_TIMER_MIN_TIME) ? SENSOR_TIMER_MIN_TIME : interval; in PedometerTimerEntry()
75 ret = OsalTimerSetTimeout(&drvData->pedometerTimer, interval); in PedometerTimerEntry()
93 drvData->interval = SENSOR_TIMER_MIN_TIME; in InitPedometerData()
165 static int32_t SetPedometerBatch(int64_t samplingInterval, int64_t interval) in SetPedometerBatch() argument
167 (void)interval; in SetPedometerBatch()
174 drvData->interval = samplingInterval; in SetPedometerBatch()
/drivers/hdf_core/framework/model/sensor/driver/barometer/
Dsensor_barometer_driver.c62 int64_t interval; in BarometerTimerEntry() local
71 interval = OsalDivS64(drvData->interval, (SENSOR_CONVERT_UNIT * SENSOR_CONVERT_UNIT)); in BarometerTimerEntry()
72 interval = (interval < SENSOR_TIMER_MIN_TIME) ? SENSOR_TIMER_MIN_TIME : interval; in BarometerTimerEntry()
73 ret = OsalTimerSetTimeout(&drvData->barometerTimer, interval); in BarometerTimerEntry()
91 drvData->interval = SENSOR_TIMER_MIN_TIME; in InitBarometerData()
162 static int32_t SetBarometerBatch(int64_t samplingInterval, int64_t interval) in SetBarometerBatch() argument
164 (void)interval; in SetBarometerBatch()
171 drvData->interval = samplingInterval; in SetBarometerBatch()
/drivers/hdf_core/framework/model/sensor/driver/gyro/
Dsensor_gyro_driver.c62 int64_t interval; in GyroTimerEntry() local
71 interval = OsalDivS64(drvData->interval, (SENSOR_CONVERT_UNIT * SENSOR_CONVERT_UNIT)); in GyroTimerEntry()
72 interval = (interval < SENSOR_TIMER_MIN_TIME) ? SENSOR_TIMER_MIN_TIME : interval; in GyroTimerEntry()
73 ret = OsalTimerSetTimeout(&drvData->gyroTimer, interval); in GyroTimerEntry()
91 drvData->interval = SENSOR_TIMER_MIN_TIME; in InitGyroData()
162 static int32_t SetGyroBatch(int64_t samplingInterval, int64_t interval) in SetGyroBatch() argument
164 (void)interval; in SetGyroBatch()
171 drvData->interval = samplingInterval; in SetGyroBatch()
/drivers/hdf_core/framework/model/sensor/driver/proximity/
Dsensor_proximity_driver.c61 int64_t interval; in ProximityTimerEntry() local
70 interval = OsalDivS64(drvData->interval, (SENSOR_CONVERT_UNIT * SENSOR_CONVERT_UNIT)); in ProximityTimerEntry()
71 interval = (interval < SENSOR_TIMER_MIN_TIME) ? SENSOR_TIMER_MIN_TIME : interval; in ProximityTimerEntry()
72 ret = OsalTimerSetTimeout(&drvData->proximityTimer, interval); in ProximityTimerEntry()
90 drvData->interval = SENSOR_TIMER_MIN_TIME; in InitProximityData()
161 static int32_t SetProximityBatch(int64_t samplingInterval, int64_t interval) in SetProximityBatch() argument
163 (void)interval; in SetProximityBatch()
170 drvData->interval = samplingInterval; in SetProximityBatch()
Dsensor_proximity_driver.h34 int64_t interval; member
/drivers/hdf_core/framework/model/sensor/driver/temperature/
Dsensor_temperature_driver.c62 int64_t interval; in TemperatureTimerEntry() local
71 interval = OsalDivS64(drvData->interval, (SENSOR_CONVERT_UNIT * SENSOR_CONVERT_UNIT)); in TemperatureTimerEntry()
72 interval = (interval < SENSOR_TIMER_MIN_TIME) ? SENSOR_TIMER_MIN_TIME : interval; in TemperatureTimerEntry()
73 ret = OsalTimerSetTimeout(&drvData->temperatureTimer, interval); in TemperatureTimerEntry()
91 drvData->interval = SENSOR_TIMER_MIN_TIME; in InitTemperatureData()
164 static int32_t SetTemperatureBatch(int64_t samplingInterval, int64_t interval) in SetTemperatureBatch() argument
166 (void)interval; in SetTemperatureBatch()
173 drvData->interval = samplingInterval; in SetTemperatureBatch()
Dsensor_temperature_driver.h36 int64_t interval; member
/drivers/hdf_core/framework/model/sensor/driver/humidity/
Dsensor_humidity_driver.c62 int64_t interval; in HumidityTimerEntry() local
71 interval = OsalDivS64(drvData->interval, (SENSOR_CONVERT_UNIT * SENSOR_CONVERT_UNIT)); in HumidityTimerEntry()
72 interval = (interval < SENSOR_TIMER_MIN_TIME) ? SENSOR_TIMER_MIN_TIME : interval; in HumidityTimerEntry()
73 ret = OsalTimerSetTimeout(&drvData->humidityTimer, interval); in HumidityTimerEntry()
91 drvData->interval = SENSOR_TIMER_MIN_TIME; in InitHumidityData()
162 static int32_t SetHumidityBatch(int64_t samplingInterval, int64_t interval) in SetHumidityBatch() argument
164 (void)interval; in SetHumidityBatch()
171 drvData->interval = samplingInterval; in SetHumidityBatch()
/drivers/hdf_core/framework/model/sensor/driver/accel/
Dsensor_accel_driver.c87 int64_t interval; in AccelTimerEntry() local
96 interval = OsalDivS64(drvData->interval, (SENSOR_CONVERT_UNIT * SENSOR_CONVERT_UNIT)); in AccelTimerEntry()
97 interval = (interval < SENSOR_TIMER_MIN_TIME) ? SENSOR_TIMER_MIN_TIME : interval; in AccelTimerEntry()
98 ret = OsalTimerSetTimeout(&drvData->accelTimer, interval); in AccelTimerEntry()
116 drvData->interval = SENSOR_TIMER_MIN_TIME; in InitAccelData()
187 static int32_t SetAccelBatch(int64_t samplingInterval, int64_t interval) in SetAccelBatch() argument
189 (void)interval; in SetAccelBatch()
196 drvData->interval = samplingInterval; in SetAccelBatch()
Dsensor_gravity_driver.c90 ret = OsalTimerSetTimeout(&drvData->gravityTimer, drvData->interval); in GravityTimerEntry()
108 drvData->interval = GRAVITY_TIMER_MAX_TIME; in InitGravityData()
166 static int32_t SetGravityBatch(int64_t samplingInterval, int64_t interval) in SetGravityBatch() argument
168 (void)interval; in SetGravityBatch()
178 …drvData->interval = (ms <= GRAVITY_TIMER_MIN_TIME) ? GRAVITY_TIMER_MIN_TIME : GRAVITY_TIMER_MAX_TI… in SetGravityBatch()
Dsensor_gravity_driver.h41 int64_t interval; member
/drivers/hdf_core/framework/model/sensor/driver/magnetic/
Dsensor_magnetic_driver.c62 int64_t interval; in MagneticTimerEntry() local
71 interval = OsalDivS64(drvData->interval, (SENSOR_CONVERT_UNIT * SENSOR_CONVERT_UNIT)); in MagneticTimerEntry()
72 interval = (interval < SENSOR_TIMER_MIN_TIME) ? SENSOR_TIMER_MIN_TIME : interval; in MagneticTimerEntry()
73 ret = OsalTimerSetTimeout(&drvData->magneticTimer, interval); in MagneticTimerEntry()
91 drvData->interval = SENSOR_TIMER_MIN_TIME; in InitMagneticData()
162 static int32_t SetMagneticBatch(int64_t samplingInterval, int64_t interval) in SetMagneticBatch() argument
164 (void)interval; in SetMagneticBatch()
171 drvData->interval = samplingInterval; in SetMagneticBatch()
/drivers/peripheral/usb/test/moduletest/common/scripts/
Dusb_watch_process.sh18 interval=1
27 sleep $interval
/drivers/hdf_core/interfaces/inner_api/osal/shared/
Dosal_timer.h76 int32_t OsalTimerCreate(OsalTimer *timer, uint32_t interval, OsalTimerFunc func, uintptr_t arg);
146 int32_t OsalTimerSetTimeout(OsalTimer *timer, uint32_t interval);
/drivers/peripheral/thermal/interfaces/hdi_service/src/
Dsensor_info_config.cpp48 void SensorInfoConfig::SetGroupInterval(int32_t interval) in SetGroupInterval() argument
50 interval_ = interval; in SetGroupInterval()
/drivers/peripheral/camera/vdi_base/v4l2/include/stream_operator/
Dstream_statistics.h42 void DumpStats(int interval = 0);
43 void CalculateFps(int interval);
/drivers/hdf_core/framework/model/sensor/driver/als/
Dsensor_als_driver.c194 int64_t interval; in AlsTimerEntry() local
204 interval = OsalDivS64(drvData->interval, (SENSOR_CONVERT_UNIT * SENSOR_CONVERT_UNIT)); in AlsTimerEntry()
205 interval = (interval < SENSOR_TIMER_MIN_TIME) ? SENSOR_TIMER_MIN_TIME : interval; in AlsTimerEntry()
206 ret = OsalTimerSetTimeout(&drvData->alsTimer, interval); in AlsTimerEntry()
226 drvData->interval = SENSOR_TIMER_MIN_TIME; in InitAlsData()
299 static int32_t SetAlsBatch(int64_t samplingInterval, int64_t interval) in SetAlsBatch() argument
301 (void)interval; in SetAlsBatch()
308 drvData->interval = samplingInterval; in SetAlsBatch()
/drivers/interface/location/lpfence/cellbatching/v1_0/
DCellbatchingTypes.idl65 …the modem to receive base station data. The minimum interval is 30 seconds, and the maximum interv…
66 int interval;

1234