rfcarrierwave


Example Summary

The carrier wave (CW) example sends a continuous carrier wave or pseudo-random modulated signal on a fixed frequency.

Board Specific Settings

  1. The default frequency is:
    • 2440 MHz on the LP_EM_CC2340R5 In order to change frequency, modify the FREQUENCY define in rfCarrierWave.c.

Example Usage

  1. Run the continuous receive using SmartRf Studio.
  2. Run the example.

Application Design Details

This examples consists of a single task and setting up RCL to transmit a continuous wave.

To switch between carrier wave (1) and modulated signal (0) set the following in the code (CW is set as default):

txCmd.config.sendCw = 1; // CW
txCmd.config.sendCw = 0; // modulated signal

When the task is executed it:

  1. Initializes and opens RCL with proprietary radio setup.
  2. Sets up the radio for generic transmit test.
  3. Explicitly configures CW (1) or Modulated (0). Whiten mode is set to default whitening. FS is turned off.
  4. Sets up runtime callback and triggers for RCL events.
  5. Submits command.
  6. Pends on command completion.

Switching PHYs

Add the respective predefine symbol by navigating in CCS to Project Properties -> Build -> Arm Compiler -> Predefined Symbols. After nagivating to Predefined Symbols, use the appropriate symbol as described below to define the PHY used. - By default, Generic BLE 1M PHY is used. - To use 250KBPS MSK, define predefine symbol USE_250KBPS_MSK. - To use 500KBPS MSK, define predefine symbol USE_250KBPS_MSK_FEC.