/* param base Pointer to FLEXIO_I2C_Type structure. param txBuff The data bytes to send. param txSize The number of data bytes to send. retval kStatus_Success Successfully write data. retval kStatus_FLEXIO_I2C_Nak Receive NAK during writing data.  */
status_t FLEXIO_I2C_MasterWriteBlocking(FLEXIO_I2C_Type *base, const uint8_t *txBuff, uint8_t txSize)
/* param base Pointer to FLEXIO_I2C_Type structure. param txBuff The data bytes to send. param txSize The number of data bytes to send. retval kStatus_Success Successfully write data. retval kStatus_FLEXIO_I2C_Nak Receive NAK during writing data.  */
status_t FLEXIO_I2C_MasterWriteBlocking(FLEXIO_I2C_Type *base, const uint8_t *txBuff, uint8_t txSize)
{
    assert(txBuff);
    assert(txSize);
    uint32_t status;
    while (txSize--)
    {
        FLEXIO_I2C_MasterWriteByte(base, *txBuff++);
        while (!((status = FLEXIO_I2C_MasterGetStatusFlags(base)) & kFLEXIO_I2C_RxFullFlag))
        {
        }
        if (status & kFLEXIO_I2C_ReceiveNakFlag)
        {
            FLEXIO_ClearShifterErrorFlags(base->flexioBase, 1U << base->shifterIndex[1]);
            return kStatus_FLEXIO_I2C_Nak;
        }
    }
    return kStatus_Success;
}