Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This resolves #798 with the addition of 2 new public functions (& 2 new private functions for code re-use).
toggleAllPipes()
can be used to open or close all data pipes (EN_RXADDR register) in 1 SPI transaction.setRadiation()
can be used to configure the RF_SETUP register in 1 SPI transaction. To re-use the existing code insetDataRate()
&setPALevel()
functions, there are 2 new private functions:_data_rate_reg_value(speed)
replaces a bulk ofsetDataRate()
by returning an uint8_t value that can be|
'd into the value written to the RF_SETUP register. This private inline function also sets thetxDelay
value_pa_level_reg_value(level, lnaEnable)
replaces a bulk ofsetPALevel()
by returning an uint8_t value that can be|
'd into the value written to the RF_SETUP register. Given the parameter names, you can surmise that this new private inline function also compensates for the LNA_HCURR bit in the RF_SETUP register.Also includes appropriate additions to the docs and python wrapper.