1 #include "fsm/scd_sts_idle.h"
3 #include "scd_logging.h"
4 #include "scd_exception.h"
5 #include "scd_cont_man_slave.h"
8 void scd_sts_idle::recv_time_req()
10 if (_sim.get_poller().wait(SCD_CONT_DELAY))
12 // had activity on sockets => we might be receiving data
13 scd_command* cmd = new scd_command(SCD_CM_CONTROL, SCD_CM_TIME_NACK);
14 _fsm.send_command(cmd);
18 scd_command* cmd = new scd_command(SCD_CM_CONTROL, SCD_CM_TIME_ACK);
19 _fsm.send_command(cmd);
21 _fsm.set_state(_st_time_ack);
26 void scd_sts_idle::set_busy()
28 scd_command* cmd = new scd_command(SCD_CM_CONTROL, SCD_CM_BUSY);
29 _fsm.send_command(cmd);
30 _fsm.set_state(_st_busy);
34 void scd_sts_idle::set_done()
36 scd_warn("slave: transition attempt from idle to done");