flipperzero-firmware/applications/subghz/subghz_i.h
あく 5439e232cc
[FL-950] CC1101 Stage1, SPI Refactoring, Drivers layer (#386)
* API HAL SPI: refactoring, split into layers, prepare ST HAL separation. API HAL SubGhz: initialize on start. Drivers: add basic cc1101 driver. Update API usage. Debug: increase max debugger port speed. Remove subghz apps.
* CC1101: chip status handling. ApiHalSpi: increase SubGhz bus speed to 8mhz. F4: backport subghz initialization.
* Api Hal SubGhz: rx path and frequency. CC1101: frequency control.
* SubGhz Application: basic tests
* SubGhz app: tone and packet test. API HAL SUBGHZ: update configs, add missing bits and pieces.
2021-03-31 20:52:26 +03:00

45 lines
796 B
C

#pragma once
#include "subghz.h"
#include "subghz_test_basic.h"
#include "subghz_test_packet.h"
#include <furi.h>
#include <gui/gui.h>
#include <gui/view_dispatcher.h>
#include <gui/modules/submenu.h>
static const uint32_t subghz_frequencies[] = {
301000000,
315000000,
346000000,
385000000,
433920000,
438900000,
463000000,
781000000,
868000000,
915000000,
925000000,
};
static const uint32_t subghz_frequencies_count = sizeof(subghz_frequencies) / sizeof(uint32_t);
struct SubGhz {
Gui* gui;
ViewDispatcher* view_dispatcher;
Submenu* submenu;
SubghzTestBasic* subghz_test_basic;
SubghzTestPacket* subghz_test_packet;
};
typedef enum {
SubGhzViewMenu,
SubGhzViewTestBasic,
SubGhzViewTestPacket,
} SubGhzView;