/****************************************************************************
 
  Header file for LEDService service 
  based on the Gen 2 Events and Services Framework

 ****************************************************************************/

#ifndef SPI_H
#define SPI_H

#include <stdint.h>
#include <stdbool.h>

#include "ES_Types.h"
#include "ES_Configure.h"
#include "ES_Events.h"

// Public Function Prototypes
void GetData(void); 
void SendData(uint8_t DataOut); 

uint8_t GetCurrentByte0(void);
uint8_t GetCurrentByte1(void);
uint8_t GetCurrentByte2(void);
uint8_t GetCurrentByte3(void);
uint8_t GetPreviousByte0(void);
uint8_t GetPreviousByte1(void);
uint8_t GetPreviousByte2(void);
uint8_t GetPreviousByte3(void);

void InitSPI ( void );

#endif