Continued with protocol analyzer framework. added enum states and rtos friendly functions