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
- 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
- Run the continuous receive using SmartRf Studio.
- 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:
- Initializes and opens RCL with proprietary radio setup.
- Sets up the radio for generic transmit test.
- Explicitly configures CW (1) or Modulated (0). Whiten mode is set to default whitening. FS is turned off.
- Sets up runtime callback and triggers for RCL events.
- Submits command.
- 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.