clkrate | The clock rate parameter gives the frequency value for the CLKM signal, which can be one of the following values.
|
trx_bit_write(SR_CLKM_SHA_SEL, 0); trx_bit_write(SR_CLKM_CTRL, clkrate);
prep_clkchange()
function is MCU dependent and is responsible to bring the MCU to a state, where a clock change is allowed. After asserting TRX_PIN_SLP_TR = HIGH the CLKM signal delivers 35 cycles before it is turned off (see also PHY_STATE_TRX_OFF__SLEEP).trx_bit_write(SR_CLKM_SHA_SEL, 1); trx_bit_write(SR_CLKM_CTRL, clkrate); trx_pinset_slptr(1); prep_clkchange(); trx_pinset_slptr(0);