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

📄 csl_tmraux.h

📁 ccs下对dm6446的测试程序
💻 H
📖 第 1 页 / 共 3 页
字号:
}/** ============================================================================ *   @n@b CSL_TmrReset12 * *   @b Description *      TSTAT12 is set to reset state * *   @b Arguments *   @verbatim        hTmr            Handle to the Gptimer instance     @endverbatim * *   <b> Return Value </b> *       None * *   <b> Pre Condition </b> *   @n  Timer should be set it to any unchained mode * *   <b> Post Condition </b> *   @n   TSTAT12 is set to reset state * * *   @b Modifies *   @n Gptimer TCR of timer 12 * *   @b Example *   @verbatim        CSL_TmrHandle       hTmr;        ...        CSL_TmrReset12 (hWdt);        ...     @endverbatim * =========================================================================== */CSL_IDEF_INLINEvoid CSL_TmrReset12 (    CSL_TmrHandle     hTmr){    CSL_FINST(hTmr->regs->TGCR, TMR_TGCR_TIM12RS, IN_RESET);}/** ============================================================================ *   @n@b CSL_TmrReset64 * *   @b Description *      TSTAT12 and TSTAT34 is set to reset state. * *   @b Arguments *   @verbatim        hTmr            Handle to the Gptimer instance     @endverbatim * *   <b> Return Value </b> *       None * *   <b> Pre Condition </b> *   @n  Timer should be set it to GPtimer or chained mode * *   <b> Post Condition </b> *   @n   TSTAT12 and TSTAT34 is set to reset state * * *   @b Modifies *   @n Gptimer TCR of timer 12 and 34 * *   @b Example *   @verbatim        CSL_TmrHandle       hTmr;        ...        CSL_TmrReset64 (hWdt);        ...     @endverbatim * =========================================================================== */CSL_IDEF_INLINEvoid CSL_TmrReset64 (    CSL_TmrHandle     hTmr){    CSL_FINST(hTmr->regs->TGCR, TMR_TGCR_TIM12RS, IN_RESET);    CSL_FINST(hTmr->regs->TGCR, TMR_TGCR_TIM34RS, IN_RESET);}/** ============================================================================ *   @n@b CSL_tmrSetTinp34Data * *   @b Description *   @n This function set the value of the TINP34 pin data * *   @b Arguments *   @verbatim            hTmr            Handle to the general purpose timer instance            setDataTinp34   TINP34 data value     @endverbatim * *   <b> Return Value </b> None * *   <b> Pre Condition </b> *   @n  General purpose Timer should be set it to GPIO mode * *   <b> Post Condition </b> *    @n Set the TINP34 pin output value * *   @b Modifies *   @n GPTDAT_GPDIR data register * *   @b Example *   @verbatim        CSL_TmrHandle    hTmr;        Bool             setDataTinp34;        CSL_tmrSetTinp34Data(hTmr, setDataTinp34);     @endverbatim * =========================================================================== */CSL_IDEF_INLINEvoid CSL_tmrSetTinp34Data (    CSL_TmrHandle           hTmr,    Bool                    setDataTinp34){    CSL_FINS(hTmr->regs->GPTDAT_GPDIR, TMR_GPTDAT_GPDIR_GPIO_DATI34,             setDataTinp34);}/** ============================================================================ *   @n@b CSL_tmrSetToutp34Data * *   @b Description *   @n This function set the value of the TOUTP34 pin data * *   @b Arguments *   @verbatim            hTmr             Handle to the general purpose timer instance            setDataToutp34   TOUTP34 data value     @endverbatim * *   <b> Return Value </b> None * *   <b> Pre Condition </b> *   @n  General purpose Timer should be set it to GPIO mode * *   <b> Post Condition </b> *    @n Set the TOUTP34 pin output value * *   @b Modifies *   @n GPTDAT_GPDIR data register * *   @b Example *   @verbatim        CSL_TmrHandle    hTmr;        Bool             setDataToutp34;        CSL_tmrSetToutp34Data(hTmr, setDataToutp34);     @endverbatim * =========================================================================== */CSL_IDEF_INLINEvoid CSL_tmrSetToutp34Data (    CSL_TmrHandle            hTmr,    Bool                     setDataToutp34){    CSL_FINS(hTmr->regs->GPTDAT_GPDIR, TMR_GPTDAT_GPDIR_GPIO_DATO34,             setDataToutp34);}/** ============================================================================ *   @n@b CSL_tmrSetTinp12Data * *   @b Description *   @n This function set the value of the TINP12 pin data * *   @b Arguments *   @verbatim            hTmr            Handle to the general purpose timer instance            setDataTinp12   TINP12 data value     @endverbatim * *   <b> Return Value </b> None * *   <b> Pre Condition </b> *   @n  General purpose Timer should be set it to GPIO mode * *   <b> Post Condition </b> *    @n Set the TINP12 pin output value * *   @b Modifies *   @n GPTDAT_GPDIR data register * *   @b Example *   @verbatim        CSL_TmrHandle    hTmr;        Bool             setDataTinp12;        CSL_tmrSetTinp12Data(hTmr, setDataTinp12);     @endverbatim * =========================================================================== */CSL_IDEF_INLINEvoid CSL_tmrSetTinp12Data (    CSL_TmrHandle           hTmr,    Bool                    setDataTinp12){    CSL_FINS(hTmr->regs->GPTDAT_GPDIR, TMR_GPTDAT_GPDIR_GPIO_DATI12,             setDataTinp12);}/** ============================================================================ *   @n@b CSL_tmrSetToutp12Data * *   @b Description *   @n This function set the value of the TOUTP12 pin data * *   @b Arguments *   @verbatim            hTmr             Handle to the general purpose timer instance            setDataToutp12   TOUTP12 data value     @endverbatim * *   <b> Return Value </b> None * *   <b> Pre Condition </b> *   @n  General purpose Timer should be set it to GPIO mode * *   <b> Post Condition </b> *    @n Set the TOUTP12 pin output value * *   @b Modifies *   @n GPTDAT_GPDIR data register * *   @b Example *   @verbatim        CSL_TmrHandle    hTmr;        Bool             setDataToutp12;        CSL_tmrSetToutp12Data(hTmr, setDataToutp12);     @endverbatim * =========================================================================== */CSL_IDEF_INLINEvoid CSL_tmrSetToutp12Data (    CSL_TmrHandle            hTmr,    Bool                     setDataToutp12){    CSL_FINS(hTmr->regs->GPTDAT_GPDIR, TMR_GPTDAT_GPDIR_GPIO_DATO12,             setDataToutp12);}/** ============================================================================ *   @n@b CSL_tmrConfigTinp12Dir * *   @b Description *   @n This function configure the IO direction of TINP12 pin * *   @b Arguments *   @verbatim            hTmr             Handle to the general purpose timer instance            setDirTinp12     TINP12 IO direction     @endverbatim * *   <b> Return Value </b> None * *   <b> Pre Condition </b> *   @n  General purpose Timer should be set it to GPIO mode * *   <b> Post Condition </b> *    @n Set the TINP12 pin IO direction * *   @b Modifies *   @n GPTDAT_GPDIR data register * *   @b Example *   @verbatim        CSL_TmrHandle    hTmr;        Bool             setDirTinp12;        CSL_tmrConfigTinp12Dir(hTmr, setDirTinp12);     @endverbatim * =========================================================================== */CSL_IDEF_INLINEvoid CSL_tmrConfigTinp12Dir (    CSL_TmrHandle             hTmr,    Bool                      setDirTinp12){    CSL_FINS(hTmr->regs->GPTDAT_GPDIR, TMR_GPTDAT_GPDIR_GPIO_DIRI12,             setDirTinp12);}/** ============================================================================ *   @n@b CSL_tmrConfigToutp12Dir * *   @b Description *   @n This function configure the IO direction of TOUTP12 pin * *   @b Arguments *   @verbatim            hTmr             Handle to the general purpose timer instance            setDirToutp12    TOUTP12 IO direction     @endverbatim * *   <b> Return Value </b> None * *   <b> Pre Condition </b> *   @n  General purpose Timer should be set it to GPIO mode * *   <b> Post Condition </b> *    @n Set the TOUTP12 pin IO direction * *   @b Modifies *   @n GPTDAT_GPDIR data register * *   @b Example *   @verbatim        CSL_TmrHandle    hTmr;        Bool             setDirToutp12;        CSL_tmrConfigToutp12Dir(hTmr, setDirToutp12);     @endverbatim * =========================================================================== */CSL_IDEF_INLINEvoid CSL_tmrConfigToutp12Dir (    CSL_TmrHandle              hTmr,    Bool                       setDirToutp12){    CSL_FINS(hTmr->regs->GPTDAT_GPDIR, TMR_GPTDAT_GPDIR_GPIO_DIRO12, \             setDirToutp12);}/** ============================================================================ *   @n@b CSL_tmrConfigTinp34Dir * *   @b Description *   @n This function configure the IO direction of TINP34 pin * *   @b Arguments *   @verbatim            hTmr             Handle to the general purpose timer instance            setDirTinp34     TINP34 IO direction     @endverbatim * *   <b> Return Value </b> None * *   <b> Pre Condition </b> *   @n  General purpose Timer should be set it to GPIO mode * *   <b> Post Condition </b> *    @n Set the TINP34 pin IO direction * *   @b Modifies *   @n GPTDAT_GPDIR data register * *   @b Example *   @verbatim        CSL_TmrHandle    hTmr;        Bool             setDirTinp34;        CSL_tmrConfigTinp34Dir(hTmr, setDirTinp34);     @endverbatim * =========================================================================== */CSL_IDEF_INLINEvoid CSL_tmrConfigTinp34Dir (    CSL_TmrHandle             hTmr,    Bool                      setDirTinp34){    CSL_FINS(hTmr->regs->GPTDAT_GPDIR, TMR_GPTDAT_GPDIR_GPIO_DIRI34,             setDirTinp34);}/** ============================================================================ *   @n@b CSL_tmrConfigToutp34Dir * *   @b Description *   @n This function configure the IO direction of TOUTP34 pin * *   @b Arguments *   @verbatim            hTmr             Handle to the general purpose timer instance            setDirToutp34    TOUTP34 IO direction     @endverbatim * *   <b> Return Value </b> None * *   <b> Pre Condition </b> *   @n  General purpose Timer should be set it to GPIO mode * *   <b> Post Condition </b> *    @n Set the TOUTP34 pin IO direction * *   @b Modifies *   @n GPTDAT_GPDIR data register * *   @b Example *   @verbatim        CSL_TmrHandle    hTmr;        Bool             setDirToutp34;        CSL_tmrConfigToutp34Dir(hTmr, setDirToutp34);     @endverbatim * =========================================================================== */CSL_IDEF_INLINEvoid CSL_tmrConfigToutp34Dir (    CSL_TmrHandle              hTmr,    Bool                       setDirToutp34){    CSL_FINS(hTmr->regs->GPTDAT_GPDIR, TMR_GPTDAT_GPDIR_GPIO_DIRO34, \             setDirToutp34);}#ifdef __cplusplusextern "C" {#endif#endif /* CSL_TMRAUX_H_ */

⌨️ 快捷键说明

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