mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-30 02:31:44 +00:00
Makes SPI edge changes more obvious (#1056)
Rising and Falling mean the opposite when active is set high vs low. Leading and trailing makes much more sense. Closes #925
This commit is contained in:
committed by
Peter Johnson
parent
560123ab7d
commit
ab70220ecf
@@ -12,6 +12,7 @@
|
||||
#include <memory>
|
||||
|
||||
#include <wpi/ArrayRef.h>
|
||||
#include <wpi/deprecated.h>
|
||||
|
||||
#include "ErrorBase.h"
|
||||
|
||||
@@ -43,7 +44,12 @@ class SPI : public ErrorBase {
|
||||
void SetMSBFirst();
|
||||
void SetLSBFirst();
|
||||
|
||||
void SetSampleDataOnLeadingEdge();
|
||||
void SetSampleDataOnTrailingEdge();
|
||||
|
||||
WPI_DEPRECATED("Use SetSampleDataOnTrailingEdge in most cases.")
|
||||
void SetSampleDataOnFalling();
|
||||
WPI_DEPRECATED("Use SetSampleDataOnLeadingEdge in most cases")
|
||||
void SetSampleDataOnRising();
|
||||
|
||||
void SetClockActiveLow();
|
||||
|
||||
Reference in New Issue
Block a user