// © RiceMotion ( Robert Carl Rice ) 2012-2016 - All rights reserved


// This software makes use of tools and libraries obtained from open source projects or released for

// use by relevant hardware manufactures. However, this software is NOT a part of any open source project.

// It is released only on a "need to know" basis for beta testers of the "RiceCNC Interpolation Engine".

// Recipents of this source code must respect the confidential nature of this software and prevent any

// distribution that could result in counterfeit copies of the "RiceCNC Interpolation Engine".


// © RiceMotion ( Robert Carl Rice ) 2012-2016 - All rights reserved

#ifndef SSI8305_h

#define SSI8305_h


#include "Energia.h"

#include <SSI.h>


#include <driverlib/sysctl.h>


class OutputPin;


// Parameters for L6470 compatibility - L6470 Max shift clock is 5 Mhz

// Freescale, inverted clock, delayed, 8 bit framing

#define TI_8305_Protocol  SSI_CR0_FRF_MOTO | SSI_CR0_SPH |SSI_CR0_DSS_16


class SSI8305 : public SSI {

  

     public:

     SSI8305(

          char*          data,

          String*          msgPtr );

    ~SSI8305();

};


#endif