xremote_cross_remote_item.h 1.3 KB

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include "../infrared/xremote_ir_signal.h"
  3. #include "../subghz/xremote_sg_remote.h"
  4. #include "../../xremote_i.h"
  5. bool xremote_cross_remote_item_read(CrossRemoteItem* item, FlipperFormat* ff);
  6. CrossRemoteItem* xremote_cross_remote_item_alloc();
  7. void xremote_cross_remote_item_free(CrossRemoteItem* item);
  8. void xremote_cross_remote_item_set_name(CrossRemoteItem* item, const char* name);
  9. const char* xremote_cross_remote_item_get_name(CrossRemoteItem* item);
  10. void xremote_cross_remote_item_set_type(CrossRemoteItem* item, int type);
  11. void xremote_cross_remote_item_set_time(CrossRemoteItem* item, uint32_t time);
  12. uint32_t xremote_cross_remote_item_get_time(CrossRemoteItem* item);
  13. InfraredSignal* xremote_cross_remote_item_get_ir_signal(CrossRemoteItem* item);
  14. void xremote_cross_remote_item_set_ir_signal(CrossRemoteItem* item, InfraredSignal* signal);
  15. SubGhzRemote* xremote_cross_remote_item_get_sg_signal(CrossRemoteItem* item);
  16. void xremote_cross_remote_item_set_sg_signal(CrossRemoteItem* item, SubGhzRemote* subghz);
  17. bool xremote_cross_remote_item_pause_save(FlipperFormat* ff, uint32_t time, const char* name);
  18. bool xremote_cross_remote_item_ir_signal_save(InfraredSignal* signal, FlipperFormat* ff, const char* name, uint32_t time);
  19. bool xremote_cross_remote_item_sg_signal_save(SubGhzRemote* remote, FlipperFormat* ff, const char* name);