Flipper sub (raw+binraw AND ONLY OOK) TX (#2361)

This commit is contained in:
Totoo 2024-11-16 18:03:53 +01:00 committed by GitHub
parent 31c53dc455
commit 59f72cbff1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 889 additions and 34 deletions

View file

@ -44,9 +44,15 @@ struct flippersub_metadata {
FlipperProto protocol = FLIPPER_PROTO_UNSUPPORTED;
FlipperPreset preset = FLIPPER_PRESET_UNK;
uint16_t te = 0;
uint32_t binraw_bit_count = 0;
};
Optional<flippersub_metadata> read_flippersub_file(const std::filesystem::path& path);
bool seek_flipper_raw_first_data(File& f);
bool seek_flipper_binraw_first_data(File& f, bool seekzero = true);
Optional<int32_t> read_flipper_raw_next_data(File& f);
Optional<uint8_t> read_flipper_binraw_next_data(File& f);
bool get_flipper_binraw_bitvalue(uint8_t byte, uint8_t nthBit);
// Maybe sometime there will be a data part reader / converter