mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-14 02:49:20 +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:
@@ -33,42 +33,41 @@
|
||||
namespace testapp {
|
||||
|
||||
class Packet {
|
||||
public:
|
||||
Packet(
|
||||
const baseband::Packet& packet
|
||||
) : packet_ { packet },
|
||||
decoder_ { packet_ },
|
||||
reader_ { decoder_ }
|
||||
{
|
||||
}
|
||||
public:
|
||||
Packet(
|
||||
const baseband::Packet& packet)
|
||||
: packet_{packet},
|
||||
decoder_{packet_},
|
||||
reader_{decoder_} {
|
||||
}
|
||||
|
||||
size_t length() const;
|
||||
|
||||
bool is_valid() const;
|
||||
size_t length() const;
|
||||
|
||||
Timestamp received_at() const;
|
||||
bool is_valid() const;
|
||||
|
||||
uint32_t value() const;
|
||||
uint32_t alt() const;
|
||||
/*std::string serial_number() const;
|
||||
uint32_t GPS_altitude() const;
|
||||
float GPS_latitude() const;
|
||||
float GPS_longitude() const;
|
||||
std::string signature() const;
|
||||
uint32_t battery_voltage() const;*/
|
||||
Timestamp received_at() const;
|
||||
|
||||
FormattedSymbols symbols_formatted() const;
|
||||
uint32_t value() const;
|
||||
uint32_t alt() const;
|
||||
/*std::string serial_number() const;
|
||||
uint32_t GPS_altitude() const;
|
||||
float GPS_latitude() const;
|
||||
float GPS_longitude() const;
|
||||
std::string signature() const;
|
||||
uint32_t battery_voltage() const;*/
|
||||
|
||||
//bool crc_ok() const;
|
||||
FormattedSymbols symbols_formatted() const;
|
||||
|
||||
private:
|
||||
using Reader = FieldReader<ManchesterDecoder, BitRemapNone>;
|
||||
// bool crc_ok() const;
|
||||
|
||||
const baseband::Packet packet_;
|
||||
const ManchesterDecoder decoder_;
|
||||
const Reader reader_;
|
||||
private:
|
||||
using Reader = FieldReader<ManchesterDecoder, BitRemapNone>;
|
||||
|
||||
const baseband::Packet packet_;
|
||||
const ManchesterDecoder decoder_;
|
||||
const Reader reader_;
|
||||
};
|
||||
|
||||
} /* namespace testapp */
|
||||
|
||||
#endif/*__TEST_PACKET_H__*/
|
||||
#endif /*__TEST_PACKET_H__*/
|
||||
|
Reference in New Issue
Block a user