Skip to content

Commit

Permalink
Comment file - can be uncommented by user if desired
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerBroker2 authored Nov 10, 2020
1 parent f882d51 commit b7659cd
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions src/SPITransfer.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include "Arduino.h"

/* UNCOMMENT FOR USAGE
#if not(defined(MBED_H) || defined(__SAM3X8E__) || defined(DISABLE_SPI_SERIALTRANSFER)) // These boards are/will not be supported by SPITransfer.h
#include "SPITransfer.h"

*/
/*
void SPITransfer::begin(SPIClass &_port, configST configs, const uint8_t &_SS)
Description:
Expand All @@ -19,15 +19,15 @@
Return:
-------
* void
*/
*//*
void SPITransfer::begin(SPIClass& _port, const configST configs, const uint8_t& _SS)
{
port = &_port;
packet.begin(configs);
ssPin = _SS;
}

*/
/*
void SPITransfer::begin(SPIClass &_port, const uint8_t &_SS, const bool _debug, Stream &_debugPort)
Description:
Expand All @@ -42,15 +42,15 @@ void SPITransfer::begin(SPIClass& _port, const configST configs, const uint8_t&
Return:
-------
* void
*/
*//*
void SPITransfer::begin(SPIClass& _port, const uint8_t& _SS, const bool _debug, Stream& _debugPort)
{
port = &_port;
packet.begin(_debug, _debugPort);
ssPin = _SS;
}

*/
/*
uint8_t SPITransfer::sendData(const uint16_t &messageLen, const uint8_t packetID)
Description:
Expand All @@ -64,7 +64,7 @@ void SPITransfer::begin(SPIClass& _port, const uint8_t& _SS, const bool _debug,
Return:
-------
* uint8_t numBytesIncl - Number of payload bytes included in packet
*/
*//*
uint8_t SPITransfer::sendData(const uint16_t& messageLen, const uint8_t packetID)
{
uint8_t numBytesIncl = packet.constructPacket(messageLen, packetID);
Expand Down Expand Up @@ -92,7 +92,7 @@ uint8_t SPITransfer::sendData(const uint16_t& messageLen, const uint8_t packetID
return numBytesIncl;
}

*/
/*
uint8_t SPITransfer::available()
Description:
Expand All @@ -105,7 +105,7 @@ uint8_t SPITransfer::sendData(const uint16_t& messageLen, const uint8_t packetID
Return:
-------
* uint8_t bytesRead - Num bytes in RX buffer
*/
*//*
uint8_t SPITransfer::available()
{
volatile uint8_t recChar = SPDR;
Expand All @@ -115,7 +115,7 @@ uint8_t SPITransfer::available()
return bytesRead;
}

*/
/*
uint8_t SPITransfer::currentPacketID()
Description:
Expand All @@ -127,10 +127,11 @@ uint8_t SPITransfer::available()
Return:
-------
* uint8_t - ID of the last parsed packet
*/
*//*
uint8_t SPITransfer::currentPacketID()
{
return packet.currentPacketID();
}
#endif // not (defined(MBED_H) || defined(__SAM3X8E__))
*/

0 comments on commit b7659cd

Please sign in to comment.