/* Function for dispatching the correct swap sub state entry action.  */
static void swap_sub_state_entry_action_run(void)
/* Function for dispatching the correct swap sub state entry action.  */
static void swap_sub_state_entry_action_run(void)
{
    static void (* const swap_sub_state_sm_lut[SWAP_SUB_STATE_MAX])(void) = 
    {
        state_swap_erase_entry_run,
        state_write_data_swap_entry_run,
        state_erase_data_page_entry_run,
        state_restore_tail_entry_run,
        state_restore_head_entry_run
    };
    swap_sub_state_sm_lut[m_swap_sub_state]();
}