⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 csl_emifaux.h

📁 TI达芬奇dm644x各硬件模块测试代码
💻 H
📖 第 1 页 / 共 4 页
字号:
 *   @verbatim
        hEmif    Handle to the external memory interface instance
       
     @endverbatim
 *
 *   <b> Return Value </b> 
 *       None 
 *
 *   <b> Pre Condition </b>
 *   @n  None
 *
 *   <b> Post Condition </b>
 *   @n  EMIF CS5 ECC will be started
 *
 *   @b  Modifies
 *   @n  external memory interface nand flash control register
 *
 *   @b  Example
 *   @verbatim
        CSL_EmifHandle     hEmif;
        ...
        CSL_emifCS4EccStart (hEmif);
        ...
     @endverbatim
 * ===========================================================================
 */
CSL_IDEF_INLINE
void CSL_emifCS4EccStart (
    CSL_EmifHandle   hEmif
)
{
    CSL_FINS (hEmif->regs->NANDFCR, EMIF_NANDFCR_CS4ECC, TRUE);
}


/** ============================================================================
 *   @n@b CSL_emifCS3ccStart
 *
 *   @b Description
 *      This API strarts the Nand flash ECC for chip chip select3 of external 
 *      memory interface instance
 *      
 *   @b Arguments
 *   @verbatim
        hEmif    Handle to the external memory interface instance
       
     @endverbatim
 *
 *   <b> Return Value </b> 
 *       None 
 *
 *   <b> Pre Condition </b>
 *   @n  None
 *
 *   <b> Post Condition </b>
 *   @n  EMIF CS5 ECC will be started
 *
 *   @b  Modifies
 *   @n  external memory interface nand flash control register
 *
 *   @b  Example
 *   @verbatim
        CSL_EmifHandle     hEmif;
        ...
        CSL_emifCS3EccStart (hEmif);
        ...
     @endverbatim
 * ===========================================================================
 */
CSL_IDEF_INLINE
void CSL_emifCS3EccStart (
    CSL_EmifHandle   hEmif
)
{
    CSL_FINS (hEmif->regs->NANDFCR, EMIF_NANDFCR_CS3ECC, TRUE);
}


/** ============================================================================
 *   @n@b CSL_emifCS2CCStart
 *
 *   @b Description
 *      This API strarts the Nand flash ECC for chip chip select2 of external 
 *      memory interface instance
 *      
 *   @b Arguments
 *   @verbatim
        hEmif    Handle to the external memory interface instance
       
     @endverbatim
 *
 *   <b> Return Value </b> 
 *       None 
 *
 *   <b> Pre Condition </b>
 *   @n  None
 *
 *   <b> Post Condition </b>
 *   @n  EMIF CS5 ECC will be started
 *
 *   @b  Modifies
 *   @n  external memory interface nand flash control register
 *
 *   @b  Example
 *   @verbatim
        CSL_EmifHandle     hEmif;
        ...
        CSL_emifCS2EccStart (hEmif);
        ...
     @endverbatim
 * ===========================================================================
 */
CSL_IDEF_INLINE
void CSL_emifCS2EccStart (
    CSL_EmifHandle   hEmif
)
{
    CSL_FINS (hEmif->regs->NANDFCR, EMIF_NANDFCR_CS2ECC, TRUE);
}


/** ============================================================================
 *   @n@b CSL_emifCS5NandEnable
 *
 *   @b Description
 *      This API enables the Nand flash ECC for chip chip select5 of external 
 *      memory interface instance
 *      
 *   @b Arguments
 *   @verbatim
        hEmif    Handle to the external memory interface instance
       
     @endverbatim
 *
 *   <b> Return Value </b> 
 *       None 
 *
 *   <b> Pre Condition </b>
 *   @n  None
 *
 *   <b> Post Condition </b>
 *   @n  EMIF CS5 ECC will be enabled
 *
 *   @b  Modifies
 *   @n  external memory interface nand flash control register
 *
 *   @b  Example
 *   @verbatim
        CSL_EmifHandle     hEmif;
        ...
        CSL_emifCS5NandEnable (hEmif);
        ...
     @endverbatim
 * ===========================================================================
 */
CSL_IDEF_INLINE
void CSL_emifCS5NandEnable (
    CSL_EmifHandle   hEmif
)
{
    CSL_FINS (hEmif->regs->NANDFCR, EMIF_NANDFCR_CS5NAND, TRUE);
}


/** ============================================================================
 *   @n@b CSL_emifCS5NandDisable
 *
 *   @b Description
 *      This API disbles the Nand flash ECC for chip chip select5 of external 
 *      memory interface instance
 *      
 *   @b Arguments
 *   @verbatim
        hEmif    Handle to the external memory interface instance
       
     @endverbatim
 *
 *   <b> Return Value </b> 
 *       None 
 *
 *   <b> Pre Condition </b>
 *   @n  None
 *
 *   <b> Post Condition </b>
 *   @n  EMIF CS5 ECC will be disabled
 *
 *   @b  Modifies
 *   @n  external memory interface nand flash control register
 *
 *   @b  Example
 *   @verbatim
        CSL_EmifHandle     hEmif;
        ...
        CSL_emifCS5NandDisable (hEmif);
        ...
     @endverbatim
 * ===========================================================================
 */
CSL_IDEF_INLINE
void CSL_emifCS5NandDisable (
    CSL_EmifHandle   hEmif
)
{
    CSL_FINS (hEmif->regs->NANDFCR, EMIF_NANDFCR_CS5NAND, FALSE);
}


/** ============================================================================
 *   @n@b CSL_emifCS4NandEnable
 *
 *   @b Description
 *      This API enables the Nand flash ECC for chip select4 of external 
 *      memory interface instance
 *      
 *   @b Arguments
 *   @verbatim
        hEmif    Handle to the external memory interface instance
       
     @endverbatim
 *
 *   <b> Return Value </b> 
 *       None 
 *
 *   <b> Pre Condition </b>
 *   @n  None
 *
 *   <b> Post Condition </b>
 *   @n  EMIF CS4 ECC will be enabled
 *
 *   @b  Modifies
 *   @n  external memory interface nand flash control register
 *
 *   @b  Example
 *   @verbatim
        CSL_EmifHandle     hEmif;
        ...
        CSL_emifCS4NandEnable (hEmif);
        ...
     @endverbatim
 * ===========================================================================
 */
CSL_IDEF_INLINE
void CSL_emifCS4NandEnable (
    CSL_EmifHandle   hEmif
)
{
    CSL_FINS (hEmif->regs->NANDFCR, EMIF_NANDFCR_CS4NAND, TRUE);
}


/** ============================================================================
 *   @n@b CSL_emifCS4NandDisable
 *
 *   @b Description
 *      This API disbles the Nand flash ECC for chip select4 of external 
 *      memory interface instance
 *      
 *   @b Arguments
 *   @verbatim
        hEmif    Handle to the external memory interface instance
       
     @endverbatim
 *
 *   <b> Return Value </b> 
 *       None 
 *
 *   <b> Pre Condition </b>
 *   @n  None
 *
 *   <b> Post Condition </b>
 *   @n  EMIF CS4 ECC will be disabled
 *
 *   @b  Modifies
 *   @n  external memory interface nand flash control register
 *
 *   @b  Example
 *   @verbatim
        CSL_EmifHandle     hEmif;
        ...
        CSL_emifCS5NandDisable (hEmif);
        ...
     @endverbatim
 * ===========================================================================
 */
CSL_IDEF_INLINE
void CSL_emifCS4NandDisable (
    CSL_EmifHandle   hEmif
)
{
    CSL_FINS (hEmif->regs->NANDFCR, EMIF_NANDFCR_CS4NAND, FALSE);
}


/** ============================================================================
 *   @n@b CSL_emifCS3NandEnable
 *
 *   @b Description
 *      This API enables the Nand flash ECC for chip select3 of external 
 *      memory interface instance
 *      
 *   @b Arguments
 *   @verbatim
        hEmif    Handle to the external memory interface instance
       
     @endverbatim
 *
 *   <b> Return Value </b> 
 *       None 
 *
 *   <b> Pre Condition </b>
 *   @n  None
 *
 *   <b> Post Condition </b>
 *   @n  EMIF CS3 ECC will be enabled
 *
 *   @b  Modifies
 *   @n  external memory interface nand flash control register
 *
 *   @b  Example
 *   @verbatim
        CSL_EmifHandle     hEmif;
        ...
        CSL_emifCS3NandEnable (hEmif);
        ...
     @endverbatim
 * ===========================================================================
 */
CSL_IDEF_INLINE
void CSL_emifCS3NandEnable (
    CSL_EmifHandle   hEmif
)
{
    CSL_FINS (hEmif->regs->NANDFCR, EMIF_NANDFCR_CS3NAND, TRUE);
}


/** ============================================================================
 *   @n@b CSL_emifCS3NandDisable
 *
 *   @b Description
 *      This API disbles the Nand flash ECC for chip chip select3 of external 
 *      memory interface instance
 *      
 *   @b Arguments
 *   @verbatim
        hEmif    Handle to the external memory interface instance
       
     @endverbatim
 *
 *   <b> Return Value </b> 
 *       None 
 *
 *   <b> Pre Condition </b>
 *   @n  None
 *
 *   <b> Post Condition </b>
 *   @n  EMIF CS3 ECC will be disabled
 *
 *   @b  Modifies
 *   @n  external memory interface nand flash control register
 *
 *   @b  Example
 *   @verbatim
        CSL_EmifHandle     hEmif;
        ...
        CSL_emifCS3NandDisable (hEmif);
        ...
     @endverbatim
 * ===========================================================================
 */
CSL_IDEF_INLINE
void CSL_emifCS3NandDisable (
    CSL_EmifHandle   hEmif
)
{
    CSL_FINS (hEmif->regs->NANDFCR, EMIF_NANDFCR_CS3NAND, FALSE);
}


/** ============================================================================
 *   @n@b CSL_emifCS2NandEnable
 *
 *   @b Description
 *      This API enables the Nand flash ECC for chip select2 of external 
 *      memory interface instance
 *      
 *   @b Arguments
 *   @verbatim
        hEmif    Handle to the external memory interface instance
       
     @endverbatim
 *
 *   <b> Return Value </b> 
 *       None 
 *
 *   <b> Pre Condition </b>
 *   @n  None
 *
 *   <b> Post Condition </b>
 *   @n  EMIF CS2 ECC will be enabled
 *
 *   @b  Modifies
 *   @n  external memory interface nand flash control register
 *
 *   @b  Example
 *   @verbatim
        CSL_EmifHandle     hEmif;
        ...
        CSL_emifCS5NandEnable (hEmif);
        ...
     @endverbatim
 * ===========================================================================
 */
CSL_IDEF_INLINE
void CSL_emifCS2NandEnable (
    CSL_EmifHandle   hEmif
)
{
    CSL_FINS (hEmif->regs->NANDFCR, EMIF_NANDFCR_CS2NAND, TRUE);
}


/** ============================================================================
 *   @n@b CSL_emifCS2NandDisable
 *
 *   @b Description
 *      This API disbles the Nand flash ECC for chip chip select2 of external 
 *      memory interface instance
 *      
 *   @b Arguments
 *   @verbatim
        hEmif    Handle to the external memory interface instance
       
     @endverbatim
 *
 *   <b> Return Value </b> 
 *       None 
 *
 *   <b> Pre Condition </b>
 *   @n  None
 *
 *   <b> Post Condition </b>
 *   @n  EMIF CS2 ECC will be disabled
 *
 *   @b  Modifies
 *   @n  external memory interface nand flash control register
 *
 *   @b  Example
 *   @verbatim
        CSL_EmifHandle     hEmif;
        ...
        CSL_emifCS2NandDisable (hEmif);
        ...
     @endverbatim
 * ===========================================================================
 */
CSL_IDEF_INLINE
void CSL_emifCS2NandDisable (
    CSL_EmifHandle   hEmif
)
{
    CSL_FINS (hEmif->regs->NANDFCR, EMIF_NANDFCR_CS2NAND, FALSE);
}


#ifdef __cplusplus
}
#endif

#endif /* _CSL_EMIFAUX_H_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -