Skip to content

[LR11X0] Add support for specifying PA ramp time - #1529

Merged
jgromes merged 1 commit into
jgromes:masterfrom
Dazza0:feature/add_ramp_time
Jun 20, 2025
Merged

[LR11X0] Add support for specifying PA ramp time#1529
jgromes merged 1 commit into
jgromes:masterfrom
Dazza0:feature/add_ramp_time

Conversation

@Dazza0

@Dazza0 Dazza0 commented Jun 19, 2025

Copy link
Copy Markdown
Contributor

Description

This PR adds support for specifying PA power ramp time on the LR11X0 targets by adding an extra rampTimeUs parameter to the setOutputPower() function.

Note: The LR11x0 targets only support discrete ramp times. A roundRampTime() helper function is added to round up a ramp time to the nearest supported ramp time. Conversion is done via if/else if due to the discrete ramp times not scale linearly.

@StevenCellist

StevenCellist commented Jun 19, 2025

Copy link
Copy Markdown
Collaborator

Lots if whitespace changes here - any chance you can leave those out? :)
Ah.. commented here before seeing #1530. Leaving this one up to Gromes the Great.

@jgromes jgromes added the enhancement New feature or request label Jun 19, 2025
@jgromes

jgromes commented Jun 19, 2025

Copy link
Copy Markdown
Owner

@Dazza0 Thank you - everything looks good in terms of the PA ramp time, however, please leave out the whitespace changes so that we can deal with those in the separate PR.

- `setOutputPower()` now accepts a `rampTimeUs` argument
- `roundRampTime()` rounds up the ramp time to a discerte register value
  supported by the LR11X0 module.
@Dazza0
Dazza0 force-pushed the feature/add_ramp_time branch from 23f49f3 to 70b0a89 Compare June 20, 2025 05:34
@Dazza0

Dazza0 commented Jun 20, 2025

Copy link
Copy Markdown
Contributor Author

@jgromes Whitespace changes removed

@jgromes
jgromes merged commit e173cb3 into jgromes:master Jun 20, 2025
@jgromes

jgromes commented Jun 20, 2025

Copy link
Copy Markdown
Owner

@Dazza0 looking good now - merged, thank you!

@Dazza0
Dazza0 deleted the feature/add_ramp_time branch June 23, 2025 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants