Commit Graph

136 Commits

Author SHA1 Message Date
Francisco Paisana cf9d31ea64 fix coverity warning for useless call 2020-05-08 14:14:25 +02:00
Francisco Paisana 2204cab4c8 old gcc version cannot support the detected pattern. Removing it 2020-05-05 19:42:34 +01:00
Francisco Paisana e3d0b1c89e format missing fsm table 2020-05-05 19:42:34 +01:00
Francisco Paisana f4d19a6d44 added fsm table formmatting comments 2020-05-05 19:42:34 +01:00
Francisco Paisana 3ef8c67d67 enter/exit are now inside the state class. No need for friend classes anymore 2020-05-05 19:42:34 +01:00
Francisco Paisana 9b48130ae1 use of transition table to support guards in fsms 2020-05-05 19:42:34 +01:00
Francisco Paisana 04e192eb0f redesign fsm to use transition table 2020-05-05 19:42:34 +01:00
Francisco Paisana 1c74c5675e remove ambiguous enter/exit template method 2020-04-27 22:19:08 +01:00
Francisco Paisana e1ac6d7cfe use macro to disable throw 2020-04-27 22:19:08 +01:00
Francisco Paisana 6ddedd5972 moved pdu to common mac folder 2020-04-22 10:06:08 +01:00
Francisco Paisana df0da116ce removed enter state visitor, and srslte::same_state return special case in fsms 2020-04-17 17:09:48 +01:00
Francisco Paisana 63142899d1 simplified some of the fsm sfinae conditions 2020-04-17 17:09:48 +01:00
Francisco Paisana 6322e447e9 fixed issue with subfsm revisits not starting in initial substate 2020-04-17 17:09:48 +01:00
Francisco Paisana d40dcd28f3 removed uneeded swap method 2020-04-17 11:38:24 +01:00
Francisco Paisana b5abba41a3 use normal polymorphism to create vtable 2020-04-17 11:38:24 +01:00
Francisco Paisana e2b10307ea changed inplace_task name to move_callback 2020-04-17 11:38:24 +01:00
Francisco Paisana ee50ed08c2 allow inplace task to be called in const contexts 2020-04-17 11:38:24 +01:00
Francisco Paisana ef834b3c60 changed inplace_task file name 2020-04-17 11:38:24 +01:00
Francisco Paisana a6b7c5d1d2 inplace task now uses small buffer optimization for bigger captures 2020-04-17 11:38:24 +01:00
Francisco Paisana 4b2b76cf01 created inplace task to avoid mallocs in task enqueuing 2020-04-17 11:38:24 +01:00
Francisco Paisana 4ac07e5abb simplified power off state transition 2020-04-09 18:57:18 +01:00
Francisco Paisana ff988127fe wrote nas fsm test 2020-04-09 18:57:18 +01:00
Francisco Paisana 977a1acc5e eliminated unhandled_event special function. Use react instead. 2020-04-09 18:57:18 +01:00
Francisco Paisana 6e34dadce2 reverted back to tuples to store fsm state_list 2020-04-09 18:57:18 +01:00
Francisco Paisana 4036a6887a clean up enter/exit state methods 2020-04-09 18:57:18 +01:00
Francisco Paisana 8d3427e88a removed namespacing from state printing 2020-04-09 18:57:18 +01:00
Francisco Paisana b699e0e490 enter/exit moved outside of the states, into the fsm. Now i just use the type_name function to get a state name 2020-04-09 18:57:18 +01:00
Francisco Paisana 4a4827a603 created a method to detect unhandled events 2020-04-09 18:57:18 +01:00
Francisco Paisana ec3ef4474e created a simple procedure fsm 2020-04-09 18:57:18 +01:00
Francisco Paisana 1aae510e9d enter/exit are now being called in order 2020-04-09 18:57:18 +01:00
Francisco Paisana 2e15514d00 fix enter/exit calls 2020-04-09 18:57:18 +01:00
Francisco Paisana dc0427804f clean up comments and add some util functions 2020-04-09 18:57:18 +01:00
Francisco Paisana 7dc1489ea7 reintroduced optional enter/exit methods for each state 2020-04-09 18:57:18 +01:00
Francisco Paisana 6675e92806 implement fsm based on choice type 2020-04-09 18:57:18 +01:00
Francisco Paisana 018f9e7db2 implement visit pattern 2020-04-09 18:57:18 +01:00
Francisco Paisana 278a1686fb creation of choice/variant type 2020-04-09 18:57:18 +01:00
Francisco Paisana 344eaf49ec use logmap in the whole enb and ue 2020-03-25 15:50:30 +00:00
Francisco Paisana 8e837e173d printf has already a way to pad spaces. If we use it, we can avoid accidentally adding extra logs because we did srslte::logmap::get("MAC") instead of srslte::logmap::get("MAC ") 2020-03-24 22:36:27 +00:00
Francisco Paisana 82cb6baef0 now the whole ue and enb mac uses the logmap 2020-03-20 11:32:03 +00:00
Xavier Arteaga e832769ae6 Updated copyright 2020-03-16 11:26:06 +01:00
Francisco Paisana 5330249625 created tti_point type and unit test. Added also the tti_point to the scheduler harqs, and rrc procedure 2020-03-13 19:20:40 +00:00
Francisco Paisana 7548402632 change scell activation interface to use arrays. Added a method to the scheduler to get the current set of activated carriers 2020-03-11 21:56:33 +01:00
Francisco Paisana 6b96d21732 extension of the timer test to check safe running timer erasure 2020-02-29 18:00:11 +00:00
Francisco Paisana 5b2da779b7 new method in timer_handler to dispatch calls without an associated unique_timer 2020-02-29 18:00:11 +00:00
Francisco Paisana e859d622c7 added logref class to forbid logmap pointer invalidation. Created a test for the logref, and introduced it in the scheduler, rrc and nas 2020-02-28 11:33:26 +00:00
Francisco Paisana 64c9302b43 added wireshark generation to SCell Activation CE pdu_test 2020-02-14 21:49:01 +00:00
Francisco Paisana e51e2ac062 added scell activation to pdu_test 2020-02-14 21:49:01 +00:00
Andre Puschmann ed179fd311 timers: rename value() to time_elapsed()
this seems to be better readable than value() since
we've sometimes confused it with the timeout value
2020-02-06 14:40:47 +01:00
Xavier Arteaga 0edd8f74d8 fix memory leak in timer test 2020-02-04 16:33:46 +01:00
Xavier Arteaga b88a8635f1 Reduce stress timer test number of timers 2020-02-04 16:33:46 +01:00