This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/MSP432P401R: drivelib question

Part Number: MSP432P401R

Tool/software: TI C/C++ Compiler

Hello,

I am trying to made a code I2C to cmsis registers, but i have some problems, I pick up the I2C.c file on the drivelib, and now i try transform the code to cmsis register, but I don't understand some pieces, can anyone help me? I litle example how can transform this piece of code:

  //If interrupts are not used, poll for flags
    if (!BITBAND_PERI(EUSCI_B_CMSIS(moduleInstance)->IE, EUSCI_B_IE_TXIE0_OFS))
    {
        //Poll for transmit interrupt flag.
        while
            (!BITBAND_PERI(EUSCI_B_CMSIS(moduleInstance)->IFG, EUSCI_B_IFG_TXIFG0_OFS))
            ;
    }

    //Send single byte data.
    EUSCI_B_CMSIS(moduleInstance)->TXBUF = txData;

**Attention** This is a public forum