Lines Matching refs:error_code

109 	sl_status_t error_code;  in counter_gecko_start()  local
112 error_code = sl_sleeptimer_is_timer_running(&top_timer, &is_top_timer_running); in counter_gecko_start()
113 if ((error_code == SL_STATUS_OK) && (is_top_timer_running == true)) { in counter_gecko_start()
118 error_code = sl_sleeptimer_start_timer(&top_timer, dev_data->top_data.ticks, top_callback, in counter_gecko_start()
120 return error_code; in counter_gecko_start()
127 sl_status_t error_code; in counter_gecko_stop() local
130 error_code = sl_sleeptimer_is_timer_running(&top_timer, &is_top_timer_running); in counter_gecko_stop()
131 if ((error_code == SL_STATUS_OK) && (is_top_timer_running == true)) { in counter_gecko_stop()
134 return error_code; in counter_gecko_stop()
140 sl_status_t error_code; in counter_gecko_set_top_value() local
153 error_code = sl_sleeptimer_is_timer_running(&top_timer, &is_top_timer_running); in counter_gecko_set_top_value()
154 if ((error_code == SL_STATUS_OK) && (is_top_timer_running == true)) { in counter_gecko_set_top_value()
163 error_code = sl_sleeptimer_start_periodic_timer(&top_timer, cfg->ticks, top_callback, in counter_gecko_set_top_value()
166 return error_code; in counter_gecko_set_top_value()
181 sl_status_t error_code; in counter_gecko_set_alarm() local
194 error_code = sl_sleeptimer_is_timer_running(&alarm_timer[chan_id], &is_alarm_timer_running); in counter_gecko_set_alarm()
195 if ((error_code == SL_STATUS_OK) && (is_alarm_timer_running == true)) { in counter_gecko_set_alarm()
201 error_code = counter_gecko_get_value(dev, &now_ticks); in counter_gecko_set_alarm()
219 error_code = in counter_gecko_set_alarm()