Worst code ever

subghz imporvements

- hold right to delete signal in read
- extra buttons in saved signals
- ability to change counter increase value in debug
This commit is contained in:
MX
2023-02-25 22:28:35 +03:00
parent 86da6a7ffe
commit ba09da107a
27 changed files with 719 additions and 441 deletions
+10
View File
@@ -498,6 +498,10 @@ Function,+,acquire_mutex,void*,"ValueMutex*, uint32_t"
Function,-,aligned_alloc,void*,"size_t, size_t"
Function,+,aligned_free,void,void*
Function,+,aligned_malloc,void*,"size_t, size_t"
Function,-,alutech_get_custom_btn,uint8_t,
Function,-,alutech_get_original_btn,uint8_t,
Function,-,alutech_reset_original_btn,void,
Function,-,alutech_set_btn,void,uint8_t
Function,-,arc4random,__uint32_t,
Function,-,arc4random_buf,void,"void*, size_t"
Function,-,arc4random_uniform,__uint32_t,__uint32_t
@@ -1351,6 +1355,7 @@ Function,+,furi_hal_subghz_flush_rx,void,
Function,+,furi_hal_subghz_flush_tx,void,
Function,+,furi_hal_subghz_get_lqi,uint8_t,
Function,+,furi_hal_subghz_get_radio_type,SubGhzRadioType,
Function,+,furi_hal_subghz_get_rolling_counter_mult,uint8_t,
Function,+,furi_hal_subghz_get_rssi,float,
Function,+,furi_hal_subghz_idle,void,
Function,-,furi_hal_subghz_init,void,
@@ -1372,6 +1377,7 @@ Function,+,furi_hal_subghz_set_frequency,uint32_t,uint32_t
Function,+,furi_hal_subghz_set_frequency_and_path,uint32_t,uint32_t
Function,+,furi_hal_subghz_set_path,void,FuriHalSubGhzPath
Function,+,furi_hal_subghz_set_radio_type,_Bool,SubGhzRadioType
Function,+,furi_hal_subghz_set_rolling_counter_mult,void,uint8_t
Function,-,furi_hal_subghz_shutdown,void,
Function,+,furi_hal_subghz_sleep,void,
Function,+,furi_hal_subghz_start_async_rx,void,"FuriHalSubGhzCaptureCallback, void*"
@@ -1742,8 +1748,12 @@ Function,-,j1f,float,float
Function,-,jn,double,"int, double"
Function,-,jnf,float,"int, float"
Function,-,jrand48,long,unsigned short[3]
Function,-,keeloq_get_custom_btn,uint8_t,
Function,-,keeloq_get_original_btn,uint8_t,
Function,-,keeloq_reset_kl_type,void,
Function,-,keeloq_reset_mfname,void,
Function,-,keeloq_reset_original_btn,void,
Function,-,keeloq_set_btn,void,uint8_t
Function,-,l64a,char*,long
Function,-,labs,long,long
Function,-,lcong48,void,unsigned short[7]
1 entry status name type params
498 Function - aligned_alloc void* size_t, size_t
499 Function + aligned_free void void*
500 Function + aligned_malloc void* size_t, size_t
501 Function - alutech_get_custom_btn uint8_t
502 Function - alutech_get_original_btn uint8_t
503 Function - alutech_reset_original_btn void
504 Function - alutech_set_btn void uint8_t
505 Function - arc4random __uint32_t
506 Function - arc4random_buf void void*, size_t
507 Function - arc4random_uniform __uint32_t __uint32_t
1355 Function + furi_hal_subghz_flush_tx void
1356 Function + furi_hal_subghz_get_lqi uint8_t
1357 Function + furi_hal_subghz_get_radio_type SubGhzRadioType
1358 Function + furi_hal_subghz_get_rolling_counter_mult uint8_t
1359 Function + furi_hal_subghz_get_rssi float
1360 Function + furi_hal_subghz_idle void
1361 Function - furi_hal_subghz_init void
1377 Function + furi_hal_subghz_set_frequency_and_path uint32_t uint32_t
1378 Function + furi_hal_subghz_set_path void FuriHalSubGhzPath
1379 Function + furi_hal_subghz_set_radio_type _Bool SubGhzRadioType
1380 Function + furi_hal_subghz_set_rolling_counter_mult void uint8_t
1381 Function - furi_hal_subghz_shutdown void
1382 Function + furi_hal_subghz_sleep void
1383 Function + furi_hal_subghz_start_async_rx void FuriHalSubGhzCaptureCallback, void*
1748 Function - jn double int, double
1749 Function - jnf float int, float
1750 Function - jrand48 long unsigned short[3]
1751 Function - keeloq_get_custom_btn uint8_t
1752 Function - keeloq_get_original_btn uint8_t
1753 Function - keeloq_reset_kl_type void
1754 Function - keeloq_reset_mfname void
1755 Function - keeloq_reset_original_btn void
1756 Function - keeloq_set_btn void uint8_t
1757 Function - l64a char* long
1758 Function - labs long long
1759 Function - lcong48 void unsigned short[7]
@@ -39,6 +39,7 @@ volatile FuriHalSubGhz furi_hal_subghz = {
.radio_type = SubGhzRadioInternal,
.spi_bus_handle = &furi_hal_spi_bus_handle_subghz,
.cc1101_g0_pin = &gpio_cc1101_g0,
.rolling_counter_mult = 1,
};
bool furi_hal_subghz_set_radio_type(SubGhzRadioType state) {
@@ -62,6 +63,14 @@ SubGhzRadioType furi_hal_subghz_get_radio_type(void) {
return furi_hal_subghz.radio_type;
}
uint8_t furi_hal_subghz_get_rolling_counter_mult(void) {
return furi_hal_subghz.rolling_counter_mult;
}
void furi_hal_subghz_set_rolling_counter_mult(uint8_t mult) {
furi_hal_subghz.rolling_counter_mult = mult;
}
void furi_hal_subghz_set_async_mirror_pin(const GpioPin* pin) {
furi_hal_subghz.async_mirror_pin = pin;
}
@@ -77,6 +77,7 @@ typedef struct {
SubGhzRadioType radio_type;
FuriHalSpiBusHandle* spi_bus_handle;
const GpioPin* cc1101_g0_pin;
uint8_t rolling_counter_mult;
} FuriHalSubGhz;
extern volatile FuriHalSubGhz furi_hal_subghz;
@@ -309,6 +310,16 @@ void furi_hal_subghz_enable_ext_power(void);
*/
void furi_hal_subghz_disable_ext_power(void);
/** Get the current rolling protocols counter ++ value
* @return uint8_t current value
*/
uint8_t furi_hal_subghz_get_rolling_counter_mult(void);
/** Set the current rolling protocols counter ++ value
* @param mult uint8_t = 1, 2, 4, 8
*/
void furi_hal_subghz_set_rolling_counter_mult(uint8_t mult);
#ifdef __cplusplus
}
#endif