/* Function for dispatching the correct state action for data erase with a swap composite state upon a flash operation success event.  */
static void swap_sub_state_sm_run(void)
/* Function for dispatching the correct state action for data erase with a swap composite state upon a flash operation success event.  */
static void swap_sub_state_sm_run(void)
{  
    static void (* const swap_sub_state_sm_lut[SWAP_SUB_STATE_MAX])(void) = 
    {
        swap_erase_state_run,
        data_to_swap_write_state_run,
        data_page_erase_state_run,
        tail_restore_state_run,
        head_restore_state_run
    };
    swap_sub_state_sm_lut[m_swap_sub_state]();    
}