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

📄 csl_vlynqaux.h

📁 TI达芬奇dm644x各硬件模块测试代码
💻 H
📖 第 1 页 / 共 5 页
字号:
 *   @b Arguments *   @verbatim        hVlynq      Handle to the VLYNQ instance        addrMap     TX address map pointer.     @endverbatim * *   <b> Return Value </b> *       None * *   <b> Pre Condition </b> *   @n  None * *   <b> Post Condition </b> *   @n  The TXADDRMAP is set to the address passed. * *   @b Modifies *   @n VLYNQ transmit address map register. * *   @b Example *   @verbatim        CSL_VlynqHandle     hVlynq;         ...        CSL_vlynqTxAddrMapSet (hVlynq, 0xFF0000FF);        ...     @endverbatim * =========================================================================== */CSL_IDEF_INLINEvoid CSL_vlynqTxAddrMapSet (    CSL_VlynqHandle    hVlynq,    CSL_VlynqAdrPtr    addrMap){    /** Sets the Tx Address Map (XAM) register with a given    *  address/value used in translating the transmit    *  packet address */    CSL_FINS(hVlynq->regs->XAM, VLYNQ_XAM_TXADRMAP, (Uint32)addrMap);    return;}/** ============================================================================ *   @n@b CSL_vlynqRxAddrSize1Set * *   @b Description *   @n Set the receive address map size 1 to the value passed. * *   @b Arguments *   @verbatim        hVlynq          Handle to the VLYNQ instance        addrMapSize     RX address map 1 size.     @endverbatim * *   <b> Return Value </b> *       None * *   <b> Pre Condition </b> *   @n  None * *   <b> Post Condition </b> *   @n  The RXADRSIZE1 is set to the value passed. * *   @b Modifies *   @n VLYNQ receive address map size 1 register. * *   @b Example *   @verbatim        CSL_VlynqHandle     hVlynq;         ...        CSL_vlynqRxAddrSize1Set (hVlynq, 0xFFFF);        ...     @endverbatim * =========================================================================== */CSL_IDEF_INLINEvoid CSL_vlynqRxAddrSize1Set (    CSL_VlynqHandle    hVlynq,    Uint32             addrMapSize){    /** Sets the Rx Address Map Size1 (RAMS1) register with a given    *  address/value used in calculating the inbound    *  packet address */    CSL_FINS(hVlynq->regs->RAMS1, VLYNQ_RAMS1_RXADRSIZE1, addrMapSize);    return;}/** ============================================================================ *   @n@b CSL_vlynqRxAddrOffset1Set * *   @b Description *   @n Set the receive address map offset to the value passed. * *   @b Arguments *   @verbatim        hVlynq      Handle to the VLYNQ instance        addrOffset  RX address map offset.     @endverbatim * *   <b> Return Value </b> *       None * *   <b> Pre Condition </b> *   @n  None * *   <b> Post Condition </b> *   @n  The RXADROFFSET1 is set to the value passed. * *   @b Modifies *   @n VLYNQ receive address map offset register. * *   @b Example *   @verbatim        CSL_VlynqHandle     hVlynq;         ...        CSL_vlynqRxAddrOffset1Set (hVlynq, 0xFF0000FF);        ...     @endverbatim * =========================================================================== */CSL_IDEF_INLINEvoid CSL_vlynqRxAddrOffset1Set (    CSL_VlynqHandle    hVlynq,    CSL_VlynqAdrPtr    addrOffset){    /** Sets the Rx Address Map Offset1 (RAMO1) register with a     *  given address/value used in calculating the inbound     * packet address */     CSL_FINS(hVlynq->regs->RAMO1, VLYNQ_RAMO1_RXADROFFSET1, (Uint32)addrOffset);    return;}/** ============================================================================ *   @n@b CSL_vlynqRxAddrSize2Set * *   @b Description *   @n Set the receive address map size 2 to the value passed. * *   @b Arguments *   @verbatim        hVlynq          Handle to the VLYNQ instance        addrMapSize     RX address map 2 size.     @endverbatim * *   <b> Return Value </b> *       None * *   <b> Pre Condition </b> *   @n  None * *   <b> Post Condition </b> *   @n  The RXADRSIZE2 is set to the value passed. * *   @b Modifies *   @n VLYNQ receive address map size 2 register. * *   @b Example *   @verbatim        CSL_VlynqHandle     hVlynq;         ...        CSL_vlynqRxAddrSize2Set (hVlynq, 0xFFFF);        ...     @endverbatim * =========================================================================== */CSL_IDEF_INLINEvoid CSL_vlynqRxAddrSize2Set (    CSL_VlynqHandle    hVlynq,    Uint32             addrMapSize){    /** Sets the Rx Address Map Size2 (RAMS2) register with a given     *  address/value used in calculating the inbound     *  packet address */    CSL_FINS(hVlynq->regs->RAMS2, VLYNQ_RAMS2_RXADRSIZE2, addrMapSize);    return;}/** ============================================================================ *   @n@b CSL_vlynqRxAddrOffset2Set * *   @b Description *   @n Set the receive address map offset 2 to the value passed. * *   @b Arguments *   @verbatim        hVlynq      Handle to the VLYNQ instance        addrOffset  RX address map 2 offset.     @endverbatim * *   <b> Return Value </b> *       None * *   <b> Pre Condition </b> *   @n  None * *   <b> Post Condition </b> *   @n  The RXADROFFSET2 is set to the value passed. * *   @b Modifies *   @n VLYNQ receive address map offset register. * *   @b Example *   @verbatim        CSL_VlynqHandle     hVlynq;         ...        CSL_vlynqRxAddrOffset2Set (hVlynq, 0x00FFFF);        ...     @endverbatim * =========================================================================== */CSL_IDEF_INLINEvoid CSL_vlynqRxAddrOffset2Set (    CSL_VlynqHandle    hVlynq,    CSL_VlynqAdrPtr    addrOffset){    /** Sets the Rx Address Map Offset2 (RAMO2) register with a     *  given address/value used in calculating the inbound     *  packet address */    CSL_FINS(hVlynq->regs->RAMO2, VLYNQ_RAMO2_RXADROFFSET2, (Uint32)addrOffset);    return;}/** ============================================================================ *   @n@b CSL_vlynqRxAddrSize3Set * *   @b Description *   @n Set the receive address map size 3 to the value passed. * *   @b Arguments *   @verbatim        hVlynq          Handle to the VLYNQ instance        addrMapSize     RX address map 3 size.     @endverbatim * *   <b> Return Value </b> *       None * *   <b> Pre Condition </b> *   @n  None * *   <b> Post Condition </b> *   @n  The RXADRSIZE3 is set to the value passed. * *   @b Modifies *   @n VLYNQ receive address map size 2 register. * *   @b Example *   @verbatim        CSL_VlynqHandle     hVlynq;         ...        CSL_vlynqRxAddrSize3Set (hVlynq, 0xFFFF);        ...     @endverbatim * =========================================================================== */CSL_IDEF_INLINEvoid CSL_vlynqRxAddrSize3Set (    CSL_VlynqHandle    hVlynq,    Uint32             addrMapSize){   /** Sets the Rx Address Map Size3 (RAMS3) register with a given    *  address/value used in calculating the inbound    *  packet address */    CSL_FINS(hVlynq->regs->RAMS3, VLYNQ_RAMS3_RXADRSIZE3, addrMapSize);    return;}/** ============================================================================ *   @n@b CSL_vlynqRxAddrOffset3Set * *   @b Description *   @n Set the receive address map offset 3 to the value passed. * *   @b Arguments *   @verbatim        hVlynq      Handle to the VLYNQ instance        addrOffset  RX address map 3 offset.     @endverbatim * *   <b> Return Value </b> *       None * *   <b> Pre Condition </b> *   @n  None * *   <b> Post Condition </b> *   @n  The RXADROFFSET3 is set to the value passed. * *   @b Modifies *   @n VLYNQ receive address map offset register. * *   @b Example *   @verbatim        CSL_VlynqHandle     hVlynq;         ...        CSL_vlynqRxAddrOffset3Set (hVlynq, 0x00FFFF);        ...     @endverbatim * =========================================================================== */CSL_IDEF_INLINEvoid CSL_vlynqRxAddrOffset3Set (    CSL_VlynqHandle    hVlynq,    CSL_VlynqAdrPtr    addrOffset){    /** Sets the Rx Address Map Offset3 (RAMO3) register with a     *  given address/value used in calculating the inbound     *  packet address */    CSL_FINS(hVlynq->regs->RAMO3, VLYNQ_RAMO3_RXADROFFSET3, (Uint32)addrOffset);    return;}/** ============================================================================ *   @n@b CSL_vlynqRxAddrSize4Set * *   @b Description *   @n Set the receive address map size 4 to the value passed. * *   @b Arguments *   @verbatim        hVlynq          Handle to the VLYNQ instance        addrMapSize     RX address map 4 size.     @endverbatim * *   <b> Return Value </b> *       None * *   <b> Pre Condition </b> *   @n  None * *   <b> Post Condition </b> *   @n  The RXADRSIZE3 is set to the value passed. * *   @b Modifies *   @n VLYNQ receive address map size 4 register. * *   @b Example *   @verbatim        CSL_VlynqHandle     hVlynq;         ...        CSL_vlynqRxAddrSize4Set (hVlynq, 0xFFFF);        ...     @endverbatim * =========================================================================== */CSL_IDEF_INLINEvoid CSL_vlynqRxAddrSize4Set (    CSL_VlynqHandle    hVlynq,    Uint32             addrMapSize){    /** Sets the Rx Address Map Size4 (RAMS4) register with a given     *  address/value used in calculating the inbound     *  packet address */    CSL_FINS(hVlynq->regs->RAMS4, VLYNQ_RAMS4_RXADRSIZE4, addrMapSize);    return;}/** ============================================================================ *   @n@b CSL_vlynqRxAddrOffset4Set * *   @b Description *   @n Set the receive address map offset 4 to the value passed. * *   @b Arguments *   @verbatim        hVlynq      Handle to the VLYNQ instance        addrOffset  RX address map 4 offset.     @endverbatim * *   <b> Return Value </b> *       None * *   <b> Pre Condition </b> *   @n  None * *   <b> Post Condition </b> *   @n  The RXADROFFSET4 is set to the value passed. * *   @b Modifies *   @n VLYNQ receive address map offset register. * *   @b Example *   @verbatim        CSL_VlynqHandle     hVlynq;         ...        CSL_vlynqRxAddrOffset4Set (hVlynq, 0x00FFFF);        ...     @endverbatim * =========================================================================== */CSL_IDEF_INLINEvoid CSL_vlynqRxAddrOffset4Set (    CSL_VlynqHandle    hVlynq,    CSL_VlynqAdrPtr    addrOffset){    /** Sets the Rx Address Map Offset4 (RAMO4) register with a     *  given address/value used in calculating the inbound     *  packet address */    CSL_FINS(hVlynq->regs->RAMO4, VLYNQ_RAMO4_RXADROFFSET4, (Uint32)addrOffset);    return;}/** ============================================================================ *   @n@b CSL_vlynqIntvec0Enable * *   @b Description *   @n Enables the INTVEC0 (3-0) interrupt(s). * *   @b Arguments *   @verbatim        hVlynq         Handle to the VLYNQ instance        intEnable      value for Enables the INTVEC0 (3-0) interrupt(s).     @endverbatim * *   <b> Return Value </b> *       None * *   <b> Pre Condition </b> *   @n  None * *   <b> Post Condition </b> *   @n  the INTVEC0 (3-0) interrupt(s) Enables value passed. * *   @b Modifies *   @n VLYNQ Interrupt Vector 3-0 Register. * *   @b Example *   @verbatim        CSL_VlynqHandle     hVlynq;         ...        CSL_vlynqIntvec0Enable (hVlynq, 0x01);        ...     @endverbatim * =========================================================================== */CSL_IDEF_INLINEvoid CSL_vlynqIntvec0Enable (    CSL_VlynqHandle  hVlynq,    Uint32           intEnable){    /** Enable INTVEC0 (3-0) interrupt(s) */    hVlynq->regs->INTVEC0 |= intEnable;    return;}/** ============================================================================ *   @n@b CSL_vlynqIntvec0Disable * *   @b Description *   @n Disables the INTVEC0 (3-0) interrupt(s). * *   @b Arguments *   @verbatim        hVlynq          Handle to the VLYNQ instance        intDisable      value for Disables the INTVEC0 (3-0) interrupt(s).     @endverbatim * *   <b> Return Value </b> *       None * *   <b> Pre Condition </b> *   @n  None * *   <b> Post Condition </b> *   @n  the INTVEC0 (3-0) interrupt(s) Disables value passed. * *   @b Modifies *   @n VLYNQ Interrupt Vector 3-0 Register. * *   @b Example *   @verbatim        CSL_VlynqHandle     hVlynq;         ...        CSL_vlynqIntvec0Disable (hVlynq, 0x01);        ...     @endverbatim * =========================================================================== */CSL_IDEF_INLINEvoid CSL_vlynqIntvec0Disable (    CSL_VlynqHandle  hVlynq,    Uint32           intDisable){    /** Disable INTVEC0 (3-0) interrupt(s) */    hVlynq->regs->INTVEC0 &= ~(intDisable);    return;}/** ============================================================================ *   @n@b CSL_vlynqInt3TypeSet * *   @b Description *   @n Set the Interrupt type. * *   @b Arguments *   @verbatim        hVlynq       Handle to the VLYNQ instance        intType3      Interrupt type to be set.     @endverbatim * *   <b> Return Value </b> *       None * *   <b> Pre Condition </b> *   @n  None * *   <b> Post Condition </b> *   @n  The Interrupt type is set to the value passed. * *   @b Modifies *   @n VLYNQ Interrupt Vector 3-0 Register. * *   @b Example *   @verbatim        CSL_VlynqHandle     hVlynq;         ...        CSL_vlynqInt3TypeSet (hVlynq, intType3 );        ...     @endverbatim * =========================================================================== */CSL_IDEF_INLINEvoid CSL_vlynqInt3TypeSet (    CSL_VlynqHandle  hVlynq,    CSL_VlynqIntType intType3){    /** INTVEC0s' Interrupt-3 type */    CSL_FINS(hVlynq->regs->INTVEC0, VLYNQ_INTVEC0_INTTYPE3, intType3);

⌨️ 快捷键说明

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