The code export window can be used to export code
structures to configure the device and is useful when you want to generate new PHY settings
to integrate into an embedded project or change PHY settings for an existing code
example.
The rfPacketTxGenFSK example from the TRX plugin
runs default the 2gfsk50kbps PHY, but can easily be changed to run with a general purpose
PHY generated using SmartRF Studio.
- Start by importing the rfPacketTxGenFSK from the
TRX plugin to your example folder.
Example: C:\CodeExamples\TRX\CC140xP
- Under PHY SELECTION in SmartRF Studio (see Figure 3-1).
- Select the General purpose GFSK.
- Select Create custom PHY, and
implement any necessary changes (for this example we are changing the sync word).
- Press the "Code Export" button.
- Input the Output directory and Base file name for the new settings and
select File->Save All (see Figure 3-2).
- Select the folder where you want to store
the files (see Figure 3-3).
- Implement the
below changes to the rfPacketTxGenFSK (see Figure 3-4).