/* param base LPSPI peripheral address. param handle LPSPI handle pointer to lpspi_slave_handle_t. param callback DSPI callback. param userData callback function parameter.  */
void LPSPI_SlaveTransferCreateHandle(LPSPI_Type *base, lpspi_slave_handle_t *handle, lpspi_slave_transfer_callback_t callback, void *userData)
/* param base LPSPI peripheral address. param handle LPSPI handle pointer to lpspi_slave_handle_t. param callback DSPI callback. param userData callback function parameter.  */
void LPSPI_SlaveTransferCreateHandle(LPSPI_Type *base, lpspi_slave_handle_t *handle, lpspi_slave_transfer_callback_t callback, void *userData)
{
    assert(handle != NULL);
    (void)memset(handle, 0, sizeof(*handle));
    s_lpspiHandle[LPSPI_GetInstance(base)] = handle;
    s_lpspiSlaveIsr = LPSPI_SlaveTransferHandleIRQ;
    handle->callback = callback;
    handle->userData = userData;
}