mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[wpilib] Remove deprecated and broken SPI methods (#5249)
This commit is contained in:
@@ -87,76 +87,6 @@ public class SPI implements AutoCloseable {
|
||||
SPIJNI.spiSetSpeed(m_port, hz);
|
||||
}
|
||||
|
||||
/**
|
||||
* Configure the order that bits are sent and received on the wire to be the most significant bit
|
||||
* first.
|
||||
*
|
||||
* @deprecated Does not work, will be removed.
|
||||
*/
|
||||
@Deprecated(since = "2023", forRemoval = true)
|
||||
public final void setMSBFirst() {
|
||||
DriverStation.reportWarning("setMSBFirst not supported by roboRIO", false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Configure the order that bits are sent and received on the wire to be the least significant bit
|
||||
* first.
|
||||
*
|
||||
* @deprecated Does not work, will be removed.
|
||||
*/
|
||||
@Deprecated(since = "2023", forRemoval = true)
|
||||
public final void setLSBFirst() {
|
||||
DriverStation.reportWarning("setLSBFirst not supported by roboRIO", false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Configure the clock output line to be active low. This is sometimes called clock polarity high
|
||||
* or clock idle high.
|
||||
*
|
||||
* @deprecated Use setMode() instead.
|
||||
*/
|
||||
@Deprecated(since = "2023", forRemoval = true)
|
||||
public final void setClockActiveLow() {
|
||||
m_mode |= 1;
|
||||
SPIJNI.spiSetMode(m_port, m_mode);
|
||||
}
|
||||
|
||||
/**
|
||||
* Configure the clock output line to be active high. This is sometimes called clock polarity low
|
||||
* or clock idle low.
|
||||
*
|
||||
* @deprecated Use setMode() instead.
|
||||
*/
|
||||
@Deprecated(since = "2023", forRemoval = true)
|
||||
public final void setClockActiveHigh() {
|
||||
m_mode &= 1;
|
||||
SPIJNI.spiSetMode(m_port, m_mode);
|
||||
}
|
||||
|
||||
/**
|
||||
* Configure that the data is stable on the leading edge and the data changes on the trailing
|
||||
* edge.
|
||||
*
|
||||
* @deprecated Use setMode() instead.
|
||||
*/
|
||||
@Deprecated(since = "2023", forRemoval = true)
|
||||
public final void setSampleDataOnLeadingEdge() {
|
||||
m_mode &= 2;
|
||||
SPIJNI.spiSetMode(m_port, m_mode);
|
||||
}
|
||||
|
||||
/**
|
||||
* Configure that the data is stable on the trailing edge and the data changes on the leading
|
||||
* edge.
|
||||
*
|
||||
* @deprecated Use setMode() instead.
|
||||
*/
|
||||
@Deprecated(since = "2023", forRemoval = true)
|
||||
public final void setSampleDataOnTrailingEdge() {
|
||||
m_mode |= 2;
|
||||
SPIJNI.spiSetMode(m_port, m_mode);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the mode for the SPI device.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user