1    /*!
     2     * Universal Serial Communication Interface A0 SPI 2xx
     3     */
     4    metaonly interface IUSCI_A0_SPI inherits IUSCI_SPI {
     5    
     6    instance:
     7            /*! Control Register 0 */
     8        config UCxCTL0_t UCA0CTL0 = {
     9            UCCKPH      : UCCKPH_OFF,
    10            UCCKPL      : UCCKPL_OFF,
    11            UCMSB       : UCMSB_OFF,
    12            UC7BIT      : UC7BIT_OFF,
    13            UCMST       : UCMST_OFF,
    14            UCMODE      : UCMODE_0,
    15            UCSYNC      : UCSYNC,
    16        };
    17    
    18            /*! Control Register 1 */    
    19        config UCxCTL1_t UCA0CTL1 = {
    20            UCSSEL      : UCSSEL_0,
    21            UCSWRST     : UCSWRST,
    22        };
    23      
    24        /*! Status Register */
    25        config UCxSTAT_t UCA0STAT = {
    26            UCLISTEN    : UCLISTEN_OFF,
    27            UCFE        : UCFE_OFF,
    28            UCOE        : UCOE_OFF,
    29            UCBUSY      : UCBUSY,
    30        };
    31    
    32        /*! Bit Rate Control Register 0 */
    33        config unsigned char UCA0BR0 = 0;
    34        
    35        /*! Bit Rate Control Register 1 */
    36        config unsigned char UCA0BR1 = 0;
    37        
    38        /*! Receive Buffer Register */
    39        config unsigned char UCA0RXBUF = 0;
    40        
    41        /*! Transmit Buffer Register */
    42        config unsigned char UCA0TXBUF = 0;
    43    }