Jump to main content

##

# 1.1.8.4.4 DRV_SPI_Close Function

## C

    void DRV_SPI_Close( DRV_Handle handle )

## Summary

Closes an opened-instance of the SPI driver.

## Description

This routine closes an opened-instance of the SPI driver, invalidating the handle. User should make sure that there is no transfer request pending before calling this API. A new handle must be obtained by calling DRV_SPI_Open before the caller may use the driver again.

## Precondition

DRV_SPI_Open must have been called to obtain a valid opened device handle.

## Parameters

Param | Description
--- | ---
handle | A valid open-instance handle, returned from the driver's open routine

## Returns

None.

## Example

    // 'handle', returned from the DRV_SPI_Open

    DRV_SPI_Close(handle);

## Remarks

None.