mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-14 15:18:08 +00:00
Formatted code (#1007)
* Updated style * Updated files * fixed new line * Updated spacing * File fix WIP * Updated to clang 13 * updated comment style * Removed old comment code
This commit is contained in:
@@ -28,28 +28,28 @@
|
||||
namespace symbol_coding {
|
||||
|
||||
class NRZIDecoder {
|
||||
public:
|
||||
uint_fast8_t operator()(const uint_fast8_t symbol) {
|
||||
const auto out = (~(symbol ^ last)) & 1;
|
||||
last = symbol;
|
||||
return out;
|
||||
}
|
||||
public:
|
||||
uint_fast8_t operator()(const uint_fast8_t symbol) {
|
||||
const auto out = (~(symbol ^ last)) & 1;
|
||||
last = symbol;
|
||||
return out;
|
||||
}
|
||||
|
||||
private:
|
||||
uint_fast8_t last { 0 };
|
||||
private:
|
||||
uint_fast8_t last{0};
|
||||
};
|
||||
|
||||
class ACARSDecoder {
|
||||
public:
|
||||
uint_fast8_t operator()(const uint_fast8_t symbol) {
|
||||
last ^= (~symbol & 1);
|
||||
return last;
|
||||
}
|
||||
public:
|
||||
uint_fast8_t operator()(const uint_fast8_t symbol) {
|
||||
last ^= (~symbol & 1);
|
||||
return last;
|
||||
}
|
||||
|
||||
private:
|
||||
uint_fast8_t last { 0 };
|
||||
private:
|
||||
uint_fast8_t last{0};
|
||||
};
|
||||
|
||||
} /* namespace symbol_coding */
|
||||
|
||||
#endif/*__SYMBOL_CODING_H__*/
|
||||
#endif /*__SYMBOL_CODING_H__*/
|
||||
|
Reference in New Issue
Block a user