mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
Implement remote lna toggle cli cmd
This commit is contained in:
parent
3f33455b4d
commit
71136671bd
171 changed files with 925 additions and 27 deletions
|
|
@ -33,6 +33,7 @@ build_src_filter = ${Generic_E22.build_src_filter}
|
|||
+<../examples/simple_repeater/*.cpp>
|
||||
build_flags =
|
||||
${Generic_E22.build_flags}
|
||||
-D USE_SX1262
|
||||
-D RADIO_CLASS=CustomSX1262
|
||||
-D WRAPPER_CLASS=CustomSX1262Wrapper
|
||||
-D LORA_TX_POWER=22
|
||||
|
|
@ -79,6 +80,7 @@ build_src_filter = ${Generic_E22.build_src_filter}
|
|||
+<../examples/simple_repeater/*.cpp>
|
||||
build_flags =
|
||||
${Generic_E22.build_flags}
|
||||
-D USE_SX1262
|
||||
-D RADIO_CLASS=CustomSX1262
|
||||
-D WRAPPER_CLASS=CustomSX1262Wrapper
|
||||
-D LORA_TX_POWER=22
|
||||
|
|
@ -101,6 +103,7 @@ build_src_filter = ${Generic_E22.build_src_filter}
|
|||
+<../examples/simple_repeater/*.cpp>
|
||||
build_flags =
|
||||
${Generic_E22.build_flags}
|
||||
-D USE_SX1262
|
||||
-D RADIO_CLASS=CustomSX1268
|
||||
-D WRAPPER_CLASS=CustomSX1268Wrapper
|
||||
-D LORA_TX_POWER=22
|
||||
|
|
@ -147,6 +150,7 @@ build_src_filter = ${Generic_E22.build_src_filter}
|
|||
+<../examples/simple_repeater/*.cpp>
|
||||
build_flags =
|
||||
${Generic_E22.build_flags}
|
||||
-D USE_SX1262
|
||||
-D RADIO_CLASS=CustomSX1268
|
||||
-D WRAPPER_CLASS=CustomSX1268Wrapper
|
||||
-D LORA_TX_POWER=22
|
||||
|
|
|
|||
|
|
@ -46,3 +46,13 @@ mesh::LocalIdentity radio_new_identity() {
|
|||
RadioNoiseListener rng(radio);
|
||||
return mesh::LocalIdentity(&rng); // create new random identity
|
||||
}
|
||||
|
||||
#if defined(USE_SX1262) || defined(USE_SX1268)
|
||||
void radio_set_rx_boosted_gain_mode(bool rxbgm) {
|
||||
radio.setRxBoostedGainMode(rxbgm);
|
||||
}
|
||||
|
||||
bool radio_get_rx_boosted_gain_mode() {
|
||||
return radio.getRxBoostedGainMode();
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -19,3 +19,8 @@ uint32_t radio_get_rng_seed();
|
|||
void radio_set_params(float freq, float bw, uint8_t sf, uint8_t cr);
|
||||
void radio_set_tx_power(int8_t dbm);
|
||||
mesh::LocalIdentity radio_new_identity();
|
||||
|
||||
#if defined(USE_SX1262) || defined(USE_SX1268)
|
||||
bool radio_get_rx_boosted_gain_mode();
|
||||
void radio_set_rx_boosted_gain_mode(bool rxbgm);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue