/*! ----------------------------------------------------------------------------
 * @file	spi.h
 * @brief	SPI access function declarations
 */

#ifndef _SPI_H_
#define _SPI_H_

#ifdef __cplusplus
extern "C" {
#endif

#include "deca_types.h"

#define DECA_MAX_SPI_HEADER_LENGTH      (3)                     // max number of bytes in header (for formating & sizing)

int SPI_init (void);
int SPI_Uninit (void);
void SPI_SetLowRate (void);
void SPI_SetHighRate (void);
void SPI_SetCsLow (void);
void SPI_SetCsHigh (void);

#endif /* _SPI_H_ */



