mcu/drv/fsl_flash_driver_c90tfs.c
/*FUNCTION**********************************************************************
 *
 * Function Name : FlashGetEEEDataSetSize
 * Description   : Gets EEPROM size from EEPROM Data Set Size.
 *
 * Implements    : FlashGetEEEDataSetSize_Activity
 *END**************************************************************************/
FUNCTION

Function Name : FlashGetEEEDataSetSize
Description   : Gets EEPROM size from EEPROM Data Set Size.

Implements    : FlashGetEEEDataSetSize_Activity
END
FUNCTION Function Name : FlashGetEEEDataSetSize Description : Gets EEPROM size from EEPROM Data Set Size . Implements : FlashGetEEEDataSetSize_Activity END
static void FlashGetEEEDataSetSize(flash_ssd_config_t * const pSSDConfig, \
                                   uint8_t EEEDataSetSize)
{
    if      (0x00U == EEEDataSetSize) {pSSDConfig->EEESize = (uint32_t)FSL_FEATURE_FLS_EE_SIZE_0000;}
    else if (0x01U == EEEDataSetSize) {pSSDConfig->EEESize = (uint32_t)FSL_FEATURE_FLS_EE_SIZE_0001;}
    else if (0x02U == EEEDataSetSize) {pSSDConfig->EEESize = (uint32_t)FSL_FEATURE_FLS_EE_SIZE_0010;}
    else if (0x03U == EEEDataSetSize) {pSSDConfig->EEESize = (uint32_t)FSL_FEATURE_FLS_EE_SIZE_0011;}
    else if (0x04U == EEEDataSetSize) {pSSDConfig->EEESize = (uint32_t)FSL_FEATURE_FLS_EE_SIZE_0100;}
    else if (0x05U == EEEDataSetSize) {pSSDConfig->EEESize = (uint32_t)FSL_FEATURE_FLS_EE_SIZE_0101;}
    else if (0x06U == EEEDataSetSize) {pSSDConfig->EEESize = (uint32_t)FSL_FEATURE_FLS_EE_SIZE_0110;}
    else if (0x07U == EEEDataSetSize) {pSSDConfig->EEESize = (uint32_t)FSL_FEATURE_FLS_EE_SIZE_0111;}
    else if (0x08U == EEEDataSetSize) {pSSDConfig->EEESize = (uint32_t)FSL_FEATURE_FLS_EE_SIZE_1000;}
    else if (0x09U == EEEDataSetSize) {pSSDConfig->EEESize = (uint32_t)FSL_FEATURE_FLS_EE_SIZE_1001;}
    else if (0x0AU == EEEDataSetSize) {pSSDConfig->EEESize = (uint32_t)FSL_FEATURE_FLS_EE_SIZE_1010;}
    else if (0x0BU == EEEDataSetSize) {pSSDConfig->EEESize = (uint32_t)FSL_FEATURE_FLS_EE_SIZE_1011;}
    else if (0x0CU == EEEDataSetSize) {pSSDConfig->EEESize = (uint32_t)FSL_FEATURE_FLS_EE_SIZE_1100;}
    else if (0x0DU == EEEDataSetSize) {pSSDConfig->EEESize = (uint32_t)FSL_FEATURE_FLS_EE_SIZE_1101;}
    else if (0x0EU == EEEDataSetSize) {pSSDConfig->EEESize = (uint32_t)FSL_FEATURE_FLS_EE_SIZE_1110;}
    else if (0x0FU == EEEDataSetSize) {pSSDConfig->EEESize = (uint32_t)FSL_FEATURE_FLS_EE_SIZE_1111;}
    else {}
}
static void FlashGetEEEDataSetSize ( flash_ssd_config_t * const pSSDConfig , uint8_t EEEDataSetSize ) { if ( 0x00U == EEEDataSetSize ) { pSSDConfig -> EEESize = ( uint32_t ) FSL_FEATURE_FLS_EE_SIZE_0000 ; } else if ( 0x01U == EEEDataSetSize ) { pSSDConfig -> EEESize = ( uint32_t ) FSL_FEATURE_FLS_EE_SIZE_0001 ; } else if ( 0x02U == EEEDataSetSize ) { pSSDConfig -> EEESize = ( uint32_t ) FSL_FEATURE_FLS_EE_SIZE_0010 ; } else if ( 0x03U == EEEDataSetSize ) { pSSDConfig -> EEESize = ( uint32_t ) FSL_FEATURE_FLS_EE_SIZE_0011 ; } else if ( 0x04U == EEEDataSetSize ) { pSSDConfig -> EEESize = ( uint32_t ) FSL_FEATURE_FLS_EE_SIZE_0100 ; } else if ( 0x05U == EEEDataSetSize ) { pSSDConfig -> EEESize = ( uint32_t ) FSL_FEATURE_FLS_EE_SIZE_0101 ; } else if ( 0x06U == EEEDataSetSize ) { pSSDConfig -> EEESize = ( uint32_t ) FSL_FEATURE_FLS_EE_SIZE_0110 ; } else if ( 0x07U == EEEDataSetSize ) { pSSDConfig -> EEESize = ( uint32_t ) FSL_FEATURE_FLS_EE_SIZE_0111 ; } else if ( 0x08U == EEEDataSetSize ) { pSSDConfig -> EEESize = ( uint32_t ) FSL_FEATURE_FLS_EE_SIZE_1000 ; } else if ( 0x09U == EEEDataSetSize ) { pSSDConfig -> EEESize = ( uint32_t ) FSL_FEATURE_FLS_EE_SIZE_1001 ; } else if ( 0x0AU == EEEDataSetSize ) { pSSDConfig -> EEESize = ( uint32_t ) FSL_FEATURE_FLS_EE_SIZE_1010 ; } else if ( 0x0BU == EEEDataSetSize ) { pSSDConfig -> EEESize = ( uint32_t ) FSL_FEATURE_FLS_EE_SIZE_1011 ; } else if ( 0x0CU == EEEDataSetSize ) { pSSDConfig -> EEESize = ( uint32_t ) FSL_FEATURE_FLS_EE_SIZE_1100 ; } else if ( 0x0DU == EEEDataSetSize ) { pSSDConfig -> EEESize = ( uint32_t ) FSL_FEATURE_FLS_EE_SIZE_1101 ; } else if ( 0x0EU == EEEDataSetSize ) { pSSDConfig -> EEESize = ( uint32_t ) FSL_FEATURE_FLS_EE_SIZE_1110 ; } else if ( 0x0FU == EEEDataSetSize ) { pSSDConfig -> EEESize = ( uint32_t ) FSL_FEATURE_FLS_EE_SIZE_1111 ; } else { } }
FUNCTION
FUNCTION
/* Select EEPROM size */ /* Undefined value */