// © 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 SSI8711_h

#define SSI8711_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_8711_Protocol  SSI_CR0_FRF_MOTO | SSI_CR0_DSS_16



class SSI8711 : public SSI {

  

     public:

     SSI8711(

          char*          data,

          String*          msgPtr );

    ~SSI8711();


     private:

    OutputPin*     resetPin;

     OutputPin*     sleepPin;

    OutputPin*     directionPin;

     OutputPin*     stepPin; };


#endif