static chsm_result_ten s_unplugged(chsm_tst *self, const cevent_tst *e_pst)
{
STATIC_ASSERT(self);
STATIC_ASSERT(e_pst);
switch(e_pst->sig)
{
case SIG_SYS_TICK_10ms:
lm73_debug_log_func(self, e_pst, "SIG_SYS_TICK_10ms", FUNCTION);
lm73_10ms_callback(self, e_pst);
break;
}
if(lm73_timeout(self, e_pst, LM73_UNPLUGGED_TIMEOUT))
{
lm73_reset_timer(self, e_pst);
lm73_read_id(self, e_pst);
return chsm_transition(self, s_read_id_reg);
}
return chsm_ignored(self);
}
static chsm_result_ten s_unplugged(chsm_tst *self, const cevent_tst *e_pst)
{
STATIC_ASSERT(self);
STATIC_ASSERT(e_pst);
switch(e_pst->sig)
{
case SIG_SYS_TICK_10ms:
lm73_debug_log_func(self, e_pst, "SIG_SYS_TICK_10ms", FUNCTION);
lm73_10ms_callback(self, e_pst);
break;
}
}