2024-08-19 10:46 AM - edited 2024-08-19 06:25 PM
What is the simplest way to set the power amplifier?
Unfortunately the APIs require involvement with the PA ramps and index configurations.
void S2LPRadioSetPALeveldBm(uint8_t cIndex, int32_t lPowerdBm)
void S2LPRadioSetMaxPALevel(SFunctionalState xNewState)
I'm trying a simple low level configuration:
write( PA_POWER0, 0x00 ) // PA_POWER0 disable all features and select PA_LEVEL_1 slot
write( PA_POWER1, 0x01 ) // PA_POWER1 = 29-2*dBm dBm=14
or
write( PA_POWER1, 0x5B ) // PA_POWER1 = 29-2*dBm dBm=-31
That guess is based on the SigFox S2-LP driver and the data sheet. It doesn't work. Does this suggest the API to turn down the power in the SigFox drivers doesn't work? Or am I missing something about how these don't apply to CW mode or there's missing charge pump or SMPS voltage configurations?
https://github.com/sigfox-tech-radio/sigfox-ep-rf-api-st-s2lp/blob/417f31d94d4a95266c61f6b75f1cfa34a7fffe7e/src/manuf/s2lp_rf_api.c#L661