mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
[wpilib] Remove deprecated and broken SPI methods (#5249)
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
|
||||
#include <hal/SPITypes.h>
|
||||
#include <units/time.h>
|
||||
#include <wpi/deprecated.h>
|
||||
|
||||
namespace frc {
|
||||
|
||||
@@ -60,60 +59,6 @@ class SPI {
|
||||
*/
|
||||
void SetClockRate(int hz);
|
||||
|
||||
/**
|
||||
* Configure the order that bits are sent and received on the wire
|
||||
* to be most significant bit first.
|
||||
*
|
||||
* @deprecated Does not work, will be removed.
|
||||
*/
|
||||
WPI_DEPRECATED("Not supported by roboRIO.")
|
||||
void SetMSBFirst();
|
||||
|
||||
/**
|
||||
* Configure the order that bits are sent and received on the wire
|
||||
* to be least significant bit first.
|
||||
*
|
||||
* @deprecated Does not work, will be removed.
|
||||
*/
|
||||
WPI_DEPRECATED("Not supported by roboRIO.")
|
||||
void SetLSBFirst();
|
||||
|
||||
/**
|
||||
* Configure that the data is stable on the leading edge and the data
|
||||
* changes on the trailing edge.
|
||||
*
|
||||
* @deprecated Use SetMode() instead.
|
||||
*/
|
||||
WPI_DEPRECATED("Use SetMode() instead")
|
||||
void SetSampleDataOnLeadingEdge();
|
||||
|
||||
/**
|
||||
* Configure that the data is stable on the trailing edge and the data
|
||||
* changes on the leading edge.
|
||||
*
|
||||
* @deprecated Use SetMode() instead.
|
||||
*/
|
||||
WPI_DEPRECATED("Use SetMode() instead")
|
||||
void SetSampleDataOnTrailingEdge();
|
||||
|
||||
/**
|
||||
* Configure the clock output line to be active low.
|
||||
* This is sometimes called clock polarity high or clock idle high.
|
||||
*
|
||||
* @deprecated Use SetMode() instead.
|
||||
*/
|
||||
WPI_DEPRECATED("Use SetMode() instead")
|
||||
void SetClockActiveLow();
|
||||
|
||||
/**
|
||||
* Configure the clock output line to be active high.
|
||||
* This is sometimes called clock polarity low or clock idle low.
|
||||
*
|
||||
* @deprecated Use SetMode() instead.
|
||||
*/
|
||||
WPI_DEPRECATED("Use SetMode() instead")
|
||||
void SetClockActiveHigh();
|
||||
|
||||
/**
|
||||
* Sets the mode for the SPI device.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user