mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Add support for configuring SPI Auto Stall Config (#2193)
This commit is contained in:
committed by
Peter Johnson
parent
3259cffc63
commit
bdc1cab013
@@ -311,6 +311,14 @@ int SPI::GetAutoDroppedCount() {
|
||||
return val;
|
||||
}
|
||||
|
||||
void SPI::ConfigureAutoStall(HAL_SPIPort port, int csToSclkTicks,
|
||||
int stallTicks, int pow2BytesPerRead) {
|
||||
int32_t status = 0;
|
||||
HAL_ConfigureSPIAutoStall(m_port, csToSclkTicks, stallTicks, pow2BytesPerRead,
|
||||
&status);
|
||||
wpi_setHALError(status);
|
||||
}
|
||||
|
||||
void SPI::InitAccumulator(units::second_t period, int cmd, int xferSize,
|
||||
int validMask, int validValue, int dataShift,
|
||||
int dataSize, bool isSigned, bool bigEndian) {
|
||||
|
||||
Reference in New Issue
Block a user