1    /*!
     2     *  ======== IE2 ========
     3     *  MSP430 Interrupt Enable Register 2
     4     */
     5    metaonly module IE2 inherits xdc.platform.IPeripheral {
     6    
     7        /* USCI_B0 transmit interrupt enable */
     8        enum UCB0TXIE_t {
     9            UCB0TXIE_OFF = 0x00,            /*! Interrupt disabled */
    10            UCB0TXIE     = 0x08             /*! Interrupt enabled */
    11        };
    12    
    13        /* USCI_B0 receive interrupt enable */
    14        enum UCB0RXIE_t {
    15            UCB0RXIE_OFF = 0x00,            /*! Interrupt disabled */
    16            UCB0RXIE     = 0x04             /*! Interrupt enabled */
    17        };
    18        
    19        /* USCI_A0 transmit interrupt enable */
    20        enum UCA0TXIE_t {
    21            UCA0TXIE_OFF = 0x00,            /*! Interrupt disabled */
    22            UCA0TXIE     = 0x02             /*! Interrupt enabled */
    23        };
    24        
    25        /* USCI_A0 receive interrupt enable */
    26        enum UCA0RXIE_t {
    27            UCA0RXIE_OFF = 0x00,            /*! Interrupt disabled */
    28            UCA0RXIE     = 0x01             /*! Interrupt enabled */
    29        };
    30        
    31        
    32        /*! IE2, Interrupt Enable Register 2 */
    33        struct IE2_t {
    34            UCB0TXIE_t  UCB0TXIE;           /*! USCI_B0 transmit interrupt enable
    35                                             *  0 Interrupt disabled
    36                                             *  1 Interrupt enabled */
    37            UCB0RXIE_t  UCB0RXIE;           /*! USCI_B0 receive interrupt enable
    38                                             *  0 Interrupt disabled
    39                                             *  1 Interrupt enabled */
    40            UCA0TXIE_t  UCA0TXIE;           /*! USCI_A0 transmit interrupt enable
    41                                             *  0 Interrupt disabled
    42                                             *  1 Interrupt enabled */
    43            UCA0RXIE_t  UCA0RXIE;           /*! USCI_A0 receive interrupt enable
    44                                             *  0 Interrupt disabled
    45                                             *  1 Interrupt enabled */
    46        }
    47        
    48    instance:
    49        /*! IE2, Interrupt Enable Register 2 */
    50        config IE2_t IE2 = {
    51            UCB0TXIE    : UCB0TXIE_OFF,
    52            UCB0RXIE    : UCB0RXIE_OFF,
    53            UCA0TXIE    : UCA0TXIE_OFF,
    54            UCA0RXIE    : UCA0RXIE_OFF,
    55        };
    56        
    57        /*!
    58         * Get UCB0TXIE bit
    59         */
    60        bool    getUCB0TXIE();
    61        
    62        /*!
    63         * Set UCB0TXIE bit
    64         */
    65        bool    setUCB0TXIE(bool set);
    66        
    67        /*!
    68         * Get UCB0RXIE bit
    69         */
    70        bool    getUCB0RXIE();
    71        
    72        /*!
    73         * Set UCB0RXIE bit
    74         */
    75        bool    setUCB0RXIE(bool set);
    76        
    77        /*!
    78         * Get UCA0TXIE bit
    79         */
    80        bool    getUCA0TXIE();
    81        
    82        /*!
    83         * Set UCA0TXIE bit
    84         */
    85        bool    setUCA0TXIE(bool set);
    86        
    87        /*!
    88         * Get UCA0RXIE bit
    89         */
    90        bool    getUCA0RXIE();
    91        
    92        /*!
    93         * Set UCA0RXIE bit
    94         */
    95        bool    setUCA0RXIE(bool set);
    96        
    97    }