This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2652P: How to adjust the frequency offset in RF test?

Part Number: CC2652P
Other Parts Discussed in Thread: SYSCONFIG

I am using RF demo, such as rfpacketttx, rfpacketterrorrate, rfcarrierwave.
When I need to modify the frequency, I can use RFC_ CMD_ FS_ t 。 But when I need to modify the frequency offset, what do I need to do?
1、struct rfc_ CMD_ FS_ t ->fractFreq?
2、struct rfc_ CMD_ UPDATE_ HPOSC_ FREQ_ t -> freqOffset ?

#define CMD_FS 0x0803
//! Frequency Synthesizer Programming Command
struct __RFC_STRUCT rfc_CMD_FS_s {
uint16_t commandNo; //!< The command ID number 0x0803
uint16_t status; //!< \brief An integer telling the status of the command. This value is
//!< updated by the radio CPU during operation and may be read by the
//!< system CPU at any time.
rfc_radioOp_t *pNextOp; //!< Pointer to the next operation to run after this operation is done
ratmr_t startTime; //!< Absolute or relative start time (depending on the value of <code>startTrigger</code>)
struct {
uint8_t triggerType:4; //!< The type of trigger
uint8_t bEnaCmd:1; //!< \brief 0: No alternative trigger command<br>
//!< 1: CMD_TRIGGER can be used as an alternative trigger
uint8_t triggerNo:2; //!< The trigger number of the CMD_TRIGGER command that triggers this action
uint8_t pastTrig:1; //!< \brief 0: A trigger in the past is never triggered, or for start of commands, give an error<br>
//!< 1: A trigger in the past is triggered as soon as possible
} startTrigger; //!< Identification of the trigger that starts the operation
struct {
uint8_t rule:4; //!< Condition for running next command: Rule for how to proceed
uint8_t nSkip:4; //!< Number of skips + 1 if the rule involves skipping. 0: same, 1: next, 2: skip next, ...
} condition;
uint16_t frequency; //!< The frequency in MHz to tune to
uint16_t fractFreq; //!< Fractional part of the frequency to tune to
struct {
uint8_t bTxMode:1; //!< \brief 0: Start synth in RX mode<br>
//!< 1: Start synth in TX mode
uint8_t refFreq:6; //!< \brief 0: Use default reference frequency<br>
//!< Others: Use reference frequency 48 MHz/<code>refFreq</code>
} synthConf;
uint8_t __dummy0; //!< <i>Reserved</i>, always write 0
uint8_t __dummy1; //!< <i>Reserved</i>
uint8_t __dummy2; //!< <i>Reserved</i>
uint16_t __dummy3; //!< <i>Reserved</i>
} __RFC_STRUCT_ATTR;

#define CMD_UPDATE_HPOSC_FREQ 0x0608
//! Set New Frequency Offset for HPOSC
struct __RFC_STRUCT rfc_CMD_UPDATE_HPOSC_FREQ_s {
uint16_t commandNo; //!< The command ID number 0x0608
int16_t freqOffset; //!< Relative frequency offset, signed, scaled by 2<sup>-22</sup>
} __RFC_STRUCT_ATTR;

thank you~