Skip to content

Commit

Permalink
Add alias for __SPISettings
Browse files Browse the repository at this point in the history
  • Loading branch information
keeramis committed Jun 25, 2020
1 parent f7c29a3 commit b67f105
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions wiring/inc/spark_wiring_spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,21 @@ enum FrequencyScale
};

namespace particle {
class __SPISettings : public Printable {
class SPISettings : public Printable {
public:
__SPISettings(uint32_t clock, uint8_t bitOrder, uint8_t dataMode)
SPISettings(uint32_t clock, uint8_t bitOrder, uint8_t dataMode)
: default_{false},
clock_{clock},
bitOrder_{bitOrder},
dataMode_{dataMode}
{
}

__SPISettings()
SPISettings()
{
}

bool operator==(const __SPISettings& other) const
bool operator==(const SPISettings& other) const
{
if (default_ && other.default_)
return true;
Expand All @@ -77,7 +77,7 @@ class __SPISettings : public Printable {
return false;
}

bool operator>=(const __SPISettings& other) const
bool operator>=(const SPISettings& other) const
{
if (default_ && other.default_)
return true;
Expand All @@ -93,7 +93,7 @@ class __SPISettings : public Printable {
return false;
}

bool operator<=(const __SPISettings& other) const
bool operator<=(const SPISettings& other) const
{
if (default_ && other.default_)
return true;
Expand All @@ -109,7 +109,7 @@ class __SPISettings : public Printable {
return false;
}

bool operator!=(const __SPISettings& other) const
bool operator!=(const SPISettings& other) const
{
return !(other == *this);
}
Expand All @@ -133,6 +133,7 @@ class __SPISettings : public Printable {
uint8_t bitOrder_ = 0;
uint8_t dataMode_ = 0;
};
typedef SPISettings __SPISettings;
}

// NOTE: when modifying this class (method signatures, adding/removing methods)
Expand Down

0 comments on commit b67f105

Please sign in to comment.