| #ifndef __DXS_SPI_H__ |
| #define __DXS_SPI_H__ |
| /****************************************************************************** |
| |
| Copyright (c) 2006-2015 Lantiq Deutschland GmbH |
| Copyright (c) 2015 Lantiq Beteiligungs-GmbH & Co.KG |
| Copyright 2018, Intel Corporation. |
| |
| For licensing information, see the file 'LICENSE' in the root folder of |
| this software module. |
| |
| ******************************************************************************/ |
| |
| /** |
| \file dxs_spi.h |
| SPI functions declarations. |
| */ |
| |
| /* ========================================================================== */ |
| /* Includes */ |
| /* ========================================================================== */ |
| |
| /* ========================================================================== */ |
| /* Macro definitions */ |
| /* ========================================================================== */ |
| |
| /* ========================================================================== */ |
| /* Type definitions */ |
| /* ========================================================================== */ |
| |
| /* ========================================================================== */ |
| /* Function prototypes */ |
| /* ========================================================================== */ |
| extern int dxs_spi_linux_init(uint8_t cs, uint8_t access); |
| extern void dxs_spi_linux_exit(int fd); |
| extern int32_t dxs_spi_linux_read_write( |
| int fd, |
| uint8_t *tx_buf, |
| uint8_t *rx_buf, |
| uint32_t length); |
| |
| #endif /* __DXS_SPI_H__ */ |