mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-27 08:46:01 -04:00
Flipper sub (raw+binraw AND ONLY OOK) TX (#2361)
This commit is contained in:
parent
31c53dc455
commit
59f72cbff1
13 changed files with 889 additions and 34 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue