[FL-3431] Radio headers in SDK (#2881)

This commit is contained in:
hedger 2023-07-17 11:51:15 +04:00 committed by GitHub
parent f2324e4d1c
commit 20f6394ad8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 23 additions and 3 deletions

View file

@ -4,5 +4,6 @@ App(
targets=["f7"],
entry_point="subghz_device_cc1101_ext_ep",
requires=["subghz"],
sdk_headers=["cc1101_ext/cc1101_ext_interconnect.h"],
fap_libs=["hwdrivers"],
)

View file

@ -1,5 +1,5 @@
entry,status,name,type,params
Version,+,34.1,,
Version,+,34.2,,
Header,+,applications/services/bt/bt_service/bt.h,,
Header,+,applications/services/cli/cli.h,,
Header,+,applications/services/cli/cli_vcp.h,,
@ -82,6 +82,7 @@ Header,+,firmware/targets/furi_hal_include/furi_hal_usb_hid_u2f.h,,
Header,+,firmware/targets/furi_hal_include/furi_hal_version.h,,
Header,+,firmware/targets/furi_hal_include/furi_hal_vibro.h,,
Header,+,lib/digital_signal/digital_signal.h,,
Header,+,lib/drivers/cc1101_regs.h,,
Header,+,lib/flipper_application/api_hashtable/api_hashtable.h,,
Header,+,lib/flipper_application/api_hashtable/compilesort.hpp,,
Header,+,lib/flipper_application/flipper_application.h,,

1 entry status name type params
2 Version + 34.1 34.2
3 Header + applications/services/bt/bt_service/bt.h
4 Header + applications/services/cli/cli.h
5 Header + applications/services/cli/cli_vcp.h
82 Header + firmware/targets/furi_hal_include/furi_hal_version.h
83 Header + firmware/targets/furi_hal_include/furi_hal_vibro.h
84 Header + lib/digital_signal/digital_signal.h
85 Header + lib/drivers/cc1101_regs.h
86 Header + lib/flipper_application/api_hashtable/api_hashtable.h
87 Header + lib/flipper_application/api_hashtable/compilesort.hpp
88 Header + lib/flipper_application/flipper_application.h

View file

@ -1,5 +1,6 @@
entry,status,name,type,params
Version,+,34.1,,
Version,+,34.2,,
Header,+,applications/drivers/subghz/cc1101_ext/cc1101_ext_interconnect.h,,
Header,+,applications/services/bt/bt_service/bt.h,,
Header,+,applications/services/cli/cli.h,,
Header,+,applications/services/cli/cli_vcp.h,,
@ -87,6 +88,7 @@ Header,+,firmware/targets/furi_hal_include/furi_hal_usb_hid_u2f.h,,
Header,+,firmware/targets/furi_hal_include/furi_hal_version.h,,
Header,+,firmware/targets/furi_hal_include/furi_hal_vibro.h,,
Header,+,lib/digital_signal/digital_signal.h,,
Header,+,lib/drivers/cc1101_regs.h,,
Header,+,lib/flipper_application/api_hashtable/api_hashtable.h,,
Header,+,lib/flipper_application/api_hashtable/compilesort.hpp,,
Header,+,lib/flipper_application/flipper_application.h,,
@ -192,6 +194,7 @@ Header,+,lib/subghz/blocks/encoder.h,,
Header,+,lib/subghz/blocks/generic.h,,
Header,+,lib/subghz/blocks/math.h,,
Header,+,lib/subghz/devices/cc1101_configs.h,,
Header,+,lib/subghz/devices/cc1101_int/cc1101_int_interconnect.h,,
Header,+,lib/subghz/environment.h,,
Header,+,lib/subghz/protocols/raw.h,,
Header,+,lib/subghz/receiver.h,,
@ -2697,6 +2700,7 @@ Function,+,subghz_block_generic_deserialize,SubGhzProtocolStatus,"SubGhzBlockGen
Function,+,subghz_block_generic_deserialize_check_count_bit,SubGhzProtocolStatus,"SubGhzBlockGeneric*, FlipperFormat*, uint16_t"
Function,+,subghz_block_generic_get_preset_name,void,"const char*, FuriString*"
Function,+,subghz_block_generic_serialize,SubGhzProtocolStatus,"SubGhzBlockGeneric*, FlipperFormat*, SubGhzRadioPreset*"
Function,-,subghz_device_cc1101_ext_ep,const FlipperAppPluginDescriptor*,
Function,+,subghz_devices_begin,_Bool,const SubGhzDevice*
Function,+,subghz_devices_deinit,void,
Function,+,subghz_devices_end,void,const SubGhzDevice*
@ -3436,6 +3440,7 @@ Variable,+,sequence_set_vibro_on,const NotificationSequence,
Variable,+,sequence_single_vibro,const NotificationSequence,
Variable,+,sequence_solid_yellow,const NotificationSequence,
Variable,+,sequence_success,const NotificationSequence,
Variable,-,subghz_device_cc1101_int,const SubGhzDevice,
Variable,+,subghz_device_cc1101_preset_2fsk_dev2_38khz_async_regs,const uint8_t[],
Variable,+,subghz_device_cc1101_preset_2fsk_dev47_6khz_async_regs,const uint8_t[],
Variable,+,subghz_device_cc1101_preset_gfsk_9_99kb_async_regs,const uint8_t[],

1 entry status name type params
2 Version + 34.1 34.2
3 Header + applications/drivers/subghz/cc1101_ext/cc1101_ext_interconnect.h
4 Header + applications/services/bt/bt_service/bt.h
5 Header + applications/services/cli/cli.h
6 Header + applications/services/cli/cli_vcp.h
88 Header + firmware/targets/furi_hal_include/furi_hal_version.h
89 Header + firmware/targets/furi_hal_include/furi_hal_vibro.h
90 Header + lib/digital_signal/digital_signal.h
91 Header + lib/drivers/cc1101_regs.h
92 Header + lib/flipper_application/api_hashtable/api_hashtable.h
93 Header + lib/flipper_application/api_hashtable/compilesort.hpp
94 Header + lib/flipper_application/flipper_application.h
194 Header + lib/subghz/blocks/generic.h
195 Header + lib/subghz/blocks/math.h
196 Header + lib/subghz/devices/cc1101_configs.h
197 Header + lib/subghz/devices/cc1101_int/cc1101_int_interconnect.h
198 Header + lib/subghz/environment.h
199 Header + lib/subghz/protocols/raw.h
200 Header + lib/subghz/receiver.h
2700 Function + subghz_block_generic_deserialize_check_count_bit SubGhzProtocolStatus SubGhzBlockGeneric*, FlipperFormat*, uint16_t
2701 Function + subghz_block_generic_get_preset_name void const char*, FuriString*
2702 Function + subghz_block_generic_serialize SubGhzProtocolStatus SubGhzBlockGeneric*, FlipperFormat*, SubGhzRadioPreset*
2703 Function - subghz_device_cc1101_ext_ep const FlipperAppPluginDescriptor*
2704 Function + subghz_devices_begin _Bool const SubGhzDevice*
2705 Function + subghz_devices_deinit void
2706 Function + subghz_devices_end void const SubGhzDevice*
3440 Variable + sequence_single_vibro const NotificationSequence
3441 Variable + sequence_solid_yellow const NotificationSequence
3442 Variable + sequence_success const NotificationSequence
3443 Variable - subghz_device_cc1101_int const SubGhzDevice
3444 Variable + subghz_device_cc1101_preset_2fsk_dev2_38khz_async_regs const uint8_t[]
3445 Variable + subghz_device_cc1101_preset_2fsk_dev47_6khz_async_regs const uint8_t[]
3446 Variable + subghz_device_cc1101_preset_gfsk_9_99kb_async_regs const uint8_t[]

View file

@ -4,6 +4,9 @@ env.Append(
CPPPATH=[
"#/lib/drivers",
],
SDK_HEADERS=[
File("cc1101_regs.h"),
],
)

View file

@ -20,6 +20,7 @@ env.Append(
File("subghz_setting.h"),
File("subghz_protocol_registry.h"),
File("devices/cc1101_configs.h"),
File("devices/cc1101_int/cc1101_int_interconnect.h"),
],
)

View file

@ -325,7 +325,16 @@ class AppBuildset:
def get_sdk_headers(self):
sdk_headers = []
for app in self.apps:
sdk_headers.extend([app._appdir.File(header) for header in app.sdk_headers])
sdk_headers.extend(
[
src._appdir.File(header)
for src in [
app,
*(plugin for plugin in app._plugins),
]
for header in src.sdk_headers
]
)
return sdk_headers
def get_apps_of_type(self, apptype: FlipperAppType, all_known: bool = False):