/* param base The LPI2C peripheral base address. param handle Pointer to the LPI2C master driver handle. param callback User provided pointer to the asynchronous callback function. param userData User provided pointer to the application callback data.  */
void LPI2C_MasterTransferCreateHandle(LPI2C_Type *base, lpi2c_master_handle_t *handle, lpi2c_master_transfer_callback_t callback, void *userData)
/* param base The LPI2C peripheral base address. param handle Pointer to the LPI2C master driver handle. param callback User provided pointer to the asynchronous callback function. param userData User provided pointer to the application callback data.  */
void LPI2C_MasterTransferCreateHandle(LPI2C_Type *base, lpi2c_master_handle_t *handle, lpi2c_master_transfer_callback_t callback, void *userData)
{
    uint32_t instance;
    assert(NULL != handle);
    lpi2c_to_lpflexcomm_t handler;
    (void)memset(&handler, 0, sizeof(handler));
    (void)memset(handle, 0, sizeof(*handle));
    instance = LPI2C_GetInstance(base);
    handle->completionCallback = callback;
    handle->userData           = userData;
    handler.lpi2c_master_handler = LPI2C_MasterTransferHandleIRQ;
    LP_FLEXCOMM_SetIRQHandler(LPI2C_GetInstance(base), handler.lpflexcomm_handler, handle, LP_FLEXCOMM_PERIPH_LPI2C);
    LPI2C_MasterDisableInterrupts(base, (uint32_t)kLPI2C_MasterIrqFlags);
    (void)EnableIRQ(kLpi2cIrqs[instance]);
}