rflib
|
#include <rf_prop_cmd.h>
Data Fields | |
uint16_t | commandNo |
The command ID number. More... | |
uint16_t | status |
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. More... | |
rfc_radioOp_t * | pNextOp |
Pointer to the next operation to run after this operation is done. More... | |
ratmr_t | startTime |
Absolute or relative start time (depending on the value of startTrigger ) More... | |
struct { | |
uint8_t triggerType:4 | |
The type of trigger. More... | |
uint8_t bEnaCmd:1 | |
0: No alternative trigger command 1: CMD_TRIGGER can be used as an alternative trigger More... | |
uint8_t triggerNo:2 | |
The trigger number of the CMD_TRIGGER command that triggers this action. More... | |
uint8_t pastTrig:1 | |
0: A trigger in the past is never triggered, or for start of commands, give an error 1: A trigger in the past is triggered as soon as possible More... | |
} | startTrigger |
Identification of the trigger that starts the operation. More... | |
struct { | |
uint8_t rule:4 | |
Condition for running next command: Rule for how to proceed. More... | |
uint8_t nSkip:4 | |
Number of skips + 1 if the rule involves skipping. 0: same, 1: next, 2: skip next, ... More... | |
} | condition |
struct { | |
uint16_t modType:3 | |
0: FSK 1: GFSK 2: OOK Others: Reserved More... | |
uint16_t deviation:11 | |
Deviation (specified in number of steps, with step size given by deviationStepSz ) More... | |
uint16_t deviationStepSz:2 | |
Deviation step size 0: 250 Hz 1: 1000 Hz 2: 15.625 Hz 3: 62.5 Hz. More... | |
} | modulation |
struct { | |
uint32_t preScale:8 | |
Prescaler value. More... | |
uint32_t rateWord:21 | |
Rate word. More... | |
uint32_t decimMode:3 | |
0: Use automatic PDIF decimation 1: Force PDIF decimation to 0 3: Force PDIF decimation to 1 5: Force PDIF decimation to 2 Others: Reserved More... | |
} | symbolRate |
Symbol rate setting. More... | |
uint8_t | rxBw |
Receiver bandwidth. More... | |
struct { | |
uint8_t nPreamBytes:6 | |
0: 1 preamble bit 1–16: Number of preamble bytes 18, 20, ..., 30: Number of preamble bytes 31: 4 preamble bits 32: 32 preamble bytes Others: Reserved More... | |
uint8_t preamMode:2 | |
0: Send 0 as the first preamble bit 1: Send 1 as the first preamble bit 2: Send same first bit in preamble and sync word 3: Send different first bit in preamble and sync word More... | |
} | preamConf |
struct { | |
uint16_t nSwBits:6 | |
Number of sync word bits (8–32) More... | |
uint16_t bBitReversal:1 | |
0: Use positive deviation for 1 1: Use positive deviation for 0 More... | |
uint16_t bMsbFirst:1 | |
0: Least significant bit transmitted first 1: Most significant bit transmitted first More... | |
uint16_t fecMode:4 | |
Select coding 0: Uncoded binary modulation 10: Manchester coded binary modulation Others: Reserved More... | |
uint16_t __pad0__:1 | |
uint16_t whitenMode:3 | |
0: No whitening 1: CC1101/CC2500 compatible whitening 2: PN9 whitening without byte reversal 3: Reserved 4: No whitener, 32-bit IEEE 802.15.4g compatible CRC 5: IEEE 802.15.4g compatible whitener and 32-bit CRC 6: No whitener, dynamically IEEE 802.15.4g compatible 16-bit or 32-bit CRC 7: Dynamically IEEE 802.15.4g compatible whitener and 16-bit or 32-bit CRC More... | |
} | formatConf |
struct { | |
uint16_t frontEndMode:3 | |
0x00: Differential mode 0x01: Single-ended mode RFP 0x02: Single-ended mode RFN 0x05 Single-ended mode RFP with external frontend control on RF pins (RFN and RXTX) 0x06 Single-ended mode RFN with external frontend control on RF pins (RFP and RXTX) Others: Reserved More... | |
uint16_t biasMode:1 | |
0: Internal bias 1: External bias More... | |
uint16_t analogCfgMode:6 | |
0x00: Write analog configuration. Required first time after boot and when changing frequency band or front-end configuration 0x2D: Keep analog configuration. May be used after standby or when changing mode with the same frequency band and front-end configuration Others: Reserved More... | |
uint16_t bNoFsPowerUp:1 | |
0: Power up frequency synth 1: Do not power up frequency synth More... | |
uint16_t __pad0__:1 | |
uint16_t bSynthNarrowBand:1 | |
0: Normal synth mode 1: Narrow-band synth mode More... | |
} | config |
Configuration options. More... | |
uint16_t | txPower |
Transmit power. More... | |
uint32_t * | pRegOverride |
Pointer to a list of hardware and configuration registers to override. If NULL, no override is used. More... | |
uint16_t | centerFreq |
Center frequency of the frequency band used, in MHz; used for calculating some internal TX and RX parameters. For a single channel RF system, this should be set equal to the RF frequency used. For a multi channel RF system (e.g. frequency hopping spread spectrum), this should be set equal to the center frequency of the frequency band used. More... | |
int16_t | intFreq |
Intermediate frequency to use for RX, in MHz on 4.12 signed format. TX will use same intermediate frequency if supported, otherwise 0. 0x8000: Use default. More... | |
uint8_t | loDivider |
LO frequency divider setting to use. Supported values: 0, 2, 4, 5, 6, 10, 12, 15, and 30. More... | |
uint8_t | __dummy0 |
uint16_t | __dummy1 |
uint32_t * | pRegOverrideTxStd |
Pointer to a list of hardware and configuration registers to override when switching to standard PA. Used by RF driver only, not radio CPU. More... | |
uint32_t * | pRegOverrideTx20 |
Pointer to a list of hardware and configuration registers to override when switching to 20-dBm PA. Used by RF driver only, not radio CPU. More... | |
struct { | |
uint8_t triggerType:4 | |
The type of trigger. More... | |
uint8_t bEnaCmd:1 | |
0: No alternative trigger command 1: CMD_TRIGGER can be used as an alternative trigger More... | |
uint8_t triggerNo:2 | |
The trigger number of the CMD_TRIGGER command that triggers this action. More... | |
uint8_t pastTrig:1 | |
0: A trigger in the past is never triggered, or for start of commands, give an error 1: A trigger in the past is triggered as soon as possible More... | |
} | startTrigger |
Identification of the trigger that starts the operation. More... | |
struct { | |
uint8_t rule:4 | |
Condition for running next command: Rule for how to proceed. More... | |
uint8_t nSkip:4 | |
Number of skips + 1 if the rule involves skipping. 0: same, 1: next, 2: skip next, ... More... | |
} | condition |
struct { | |
uint16_t modType:3 | |
0: FSK 1: GFSK 2: OOK Others: Reserved More... | |
uint16_t deviation:11 | |
Deviation (specified in number of steps, with step size given by deviationStepSz ) More... | |
uint16_t deviationStepSz:2 | |
Deviation step size 0: 250 Hz 1: 1000 Hz 2: 15.625 Hz 3: 62.5 Hz. More... | |
} | modulation |
struct { | |
uint32_t preScale:8 | |
Prescaler value. More... | |
uint32_t rateWord:21 | |
Rate word. More... | |
uint32_t decimMode:3 | |
0: Use automatic PDIF decimation 1: Force PDIF decimation to 0 3: Force PDIF decimation to 1 5: Force PDIF decimation to 2 Others: Reserved More... | |
} | symbolRate |
Symbol rate setting. More... | |
struct { | |
uint8_t nPreamBytes:6 | |
0: 1 preamble bit 1–16: Number of preamble bytes 18, 20, ..., 30: Number of preamble bytes 31: 4 preamble bits 32: 32 preamble bytes Others: Reserved More... | |
uint8_t preamMode:2 | |
0: Send 0 as the first preamble bit 1: Send 1 as the first preamble bit 2: Send same first bit in preamble and sync word 3: Send different first bit in preamble and sync word More... | |
} | preamConf |
struct { | |
uint16_t nSwBits:6 | |
Number of sync word bits (8–32) More... | |
uint16_t bBitReversal:1 | |
0: Use positive deviation for 1 1: Use positive deviation for 0 More... | |
uint16_t bMsbFirst:1 | |
0: Least significant bit transmitted first 1: Most significant bit transmitted first More... | |
uint16_t fecMode:4 | |
Select coding 0: Uncoded binary modulation 10: Manchester coded binary modulation Others: Reserved More... | |
uint16_t __pad0__:1 | |
uint16_t whitenMode:3 | |
0: No whitening 1: CC1101/CC2500 compatible whitening 2: PN9 whitening without byte reversal 3: Reserved 4: No whitener, 32-bit IEEE 802.15.4g compatible CRC 5: IEEE 802.15.4g compatible whitener and 32-bit CRC 6: No whitener, dynamically IEEE 802.15.4g compatible 16-bit or 32-bit CRC 7: Dynamically IEEE 802.15.4g compatible whitener and 16-bit or 32-bit CRC More... | |
} | formatConf |
struct { | |
uint16_t frontEndMode:3 | |
0x00: Differential mode 0x01: Single-ended mode RFP 0x02: Single-ended mode RFN 0x05 Single-ended mode RFP with external frontend control on RF pins (RFN and RXTX) 0x06 Single-ended mode RFN with external frontend control on RF pins (RFP and RXTX) Others: Reserved More... | |
uint16_t biasMode:1 | |
0: Internal bias 1: External bias More... | |
uint16_t analogCfgMode:6 | |
0x00: Write analog configuration. Required first time after boot and when changing frequency band or front-end configuration 0x2D: Keep analog configuration. May be used after standby or when changing mode with the same frequency band and front-end configuration Others: Reserved More... | |
uint16_t bNoFsPowerUp:1 | |
0: Power up frequency synth 1: Do not power up frequency synth More... | |
uint16_t __pad0__:1 | |
uint16_t bSynthNarrowBand:1 | |
0: Normal synth mode 1: Narrow-band synth mode More... | |
} | config |
Configuration options. More... | |
struct { | |
uint8_t triggerType:4 | |
The type of trigger. More... | |
uint8_t bEnaCmd:1 | |
0: No alternative trigger command 1: CMD_TRIGGER can be used as an alternative trigger More... | |
uint8_t triggerNo:2 | |
The trigger number of the CMD_TRIGGER command that triggers this action. More... | |
uint8_t pastTrig:1 | |
0: A trigger in the past is never triggered, or for start of commands, give an error 1: A trigger in the past is triggered as soon as possible More... | |
} | startTrigger |
Identification of the trigger that starts the operation. More... | |
struct { | |
uint8_t rule:4 | |
Condition for running next command: Rule for how to proceed. More... | |
uint8_t nSkip:4 | |
Number of skips + 1 if the rule involves skipping. 0: same, 1: next, 2: skip next, ... More... | |
} | condition |
struct { | |
uint16_t modType:3 | |
0: FSK 1: GFSK 2: OOK Others: Reserved More... | |
uint16_t deviation:11 | |
Deviation (specified in number of steps, with step size given by deviationStepSz ) More... | |
uint16_t deviationStepSz:2 | |
Deviation step size 0: 250 Hz 1: 1000 Hz 2: 15.625 Hz 3: 62.5 Hz. More... | |
} | modulation |
struct { | |
uint32_t preScale:8 | |
Prescaler value. More... | |
uint32_t rateWord:21 | |
Rate word. More... | |
uint32_t decimMode:3 | |
0: Use automatic PDIF decimation 1: Force PDIF decimation to 0 3: Force PDIF decimation to 1 5: Force PDIF decimation to 2 Others: Reserved More... | |
} | symbolRate |
Symbol rate setting. More... | |
struct { | |
uint8_t nPreamBytes:6 | |
0: 1 preamble bit 1–16: Number of preamble bytes 18, 20, ..., 30: Number of preamble bytes 31: 4 preamble bits 32: 32 preamble bytes Others: Reserved More... | |
uint8_t preamMode:2 | |
0: Send 0 as the first preamble bit 1: Send 1 as the first preamble bit 2: Send same first bit in preamble and sync word 3: Send different first bit in preamble and sync word More... | |
} | preamConf |
struct { | |
uint16_t nSwBits:6 | |
Number of sync word bits (8–32) More... | |
uint16_t bBitReversal:1 | |
0: Use positive deviation for 1 1: Use positive deviation for 0 More... | |
uint16_t bMsbFirst:1 | |
0: Least significant bit transmitted first 1: Most significant bit transmitted first More... | |
uint16_t fecMode:4 | |
Select coding 0: Uncoded binary modulation 10: Manchester coded binary modulation Others: Reserved More... | |
uint16_t __pad0__:1 | |
uint16_t whitenMode:3 | |
0: No whitening 1: CC1101/CC2500 compatible whitening 2: PN9 whitening without byte reversal 3: Reserved 4: No whitener, 32-bit IEEE 802.15.4g compatible CRC 5: IEEE 802.15.4g compatible whitener and 32-bit CRC 6: No whitener, dynamically IEEE 802.15.4g compatible 16-bit or 32-bit CRC 7: Dynamically IEEE 802.15.4g compatible whitener and 16-bit or 32-bit CRC More... | |
} | formatConf |
struct { | |
uint16_t frontEndMode:3 | |
0x00: Differential mode 0x01: Single-ended mode RFP 0x02: Single-ended mode RFN 0x05 Single-ended mode RFP with external frontend control on RF pins (RFN and RXTX) 0x06 Single-ended mode RFN with external frontend control on RF pins (RFP and RXTX) Others: Reserved More... | |
uint16_t biasMode:1 | |
0: Internal bias 1: External bias More... | |
uint16_t analogCfgMode:6 | |
0x00: Write analog configuration. Required first time after boot and when changing frequency band or front-end configuration 0x2D: Keep analog configuration. May be used after standby or when changing mode with the same frequency band and front-end configuration Others: Reserved More... | |
uint16_t bNoFsPowerUp:1 | |
0: Power up frequency synth 1: Do not power up frequency synth More... | |
uint16_t __pad0__:1 | |
uint16_t bSynthNarrowBand:1 | |
0: Normal synth mode 1: Narrow-band synth mode More... | |
} | config |
Configuration options. More... | |
uint16_t rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::commandNo |
The command ID number.
uint16_t rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::status |
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 * rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::pNextOp |
Pointer to the next operation to run after this operation is done.
ratmr_t rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::startTime |
Absolute or relative start time (depending on the value of startTrigger
)
uint8_t rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::triggerType |
The type of trigger.
uint8_t rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::bEnaCmd |
0: No alternative trigger command
1: CMD_TRIGGER can be used as an alternative trigger
uint8_t rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::triggerNo |
The trigger number of the CMD_TRIGGER command that triggers this action.
uint8_t rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::pastTrig |
0: A trigger in the past is never triggered, or for start of commands, give an error
1: A trigger in the past is triggered as soon as possible
struct { ... } rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::startTrigger |
Identification of the trigger that starts the operation.
uint8_t rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::rule |
Condition for running next command: Rule for how to proceed.
uint8_t rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::nSkip |
Number of skips + 1 if the rule involves skipping. 0: same, 1: next, 2: skip next, ...
struct { ... } rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::condition |
uint16_t rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::modType |
0: FSK
1: GFSK
2: OOK
Others: Reserved
uint16_t rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::deviation |
Deviation (specified in number of steps, with step size given by deviationStepSz
)
uint16_t rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::deviationStepSz |
Deviation step size
0: 250 Hz
1: 1000 Hz
2: 15.625 Hz
3: 62.5 Hz.
struct { ... } rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::modulation |
uint32_t rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::preScale |
Prescaler value.
uint32_t rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::rateWord |
Rate word.
uint32_t rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::decimMode |
0: Use automatic PDIF decimation
1: Force PDIF decimation to 0
3: Force PDIF decimation to 1
5: Force PDIF decimation to 2
Others: Reserved
struct { ... } rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::symbolRate |
Symbol rate setting.
uint8_t rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::rxBw |
Receiver bandwidth.
uint8_t rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::nPreamBytes |
0: 1 preamble bit
1–16: Number of preamble bytes
18, 20, ..., 30: Number of preamble bytes
31: 4 preamble bits
32: 32 preamble bytes
Others: Reserved
uint8_t rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::preamMode |
0: Send 0 as the first preamble bit
1: Send 1 as the first preamble bit
2: Send same first bit in preamble and sync word
3: Send different first bit in preamble and sync word
struct { ... } rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::preamConf |
uint16_t rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::nSwBits |
Number of sync word bits (8–32)
uint16_t rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::bBitReversal |
0: Use positive deviation for 1
1: Use positive deviation for 0
uint16_t rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::bMsbFirst |
0: Least significant bit transmitted first
1: Most significant bit transmitted first
uint16_t rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::fecMode |
Select coding
0: Uncoded binary modulation
10: Manchester coded binary modulation
Others: Reserved
uint16_t rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::__pad0__ |
uint16_t rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::whitenMode |
0: No whitening
1: CC1101/CC2500 compatible whitening
2: PN9 whitening without byte reversal
3: Reserved
4: No whitener, 32-bit IEEE 802.15.4g compatible CRC
5: IEEE 802.15.4g compatible whitener and 32-bit CRC
6: No whitener, dynamically IEEE 802.15.4g compatible 16-bit or 32-bit CRC
7: Dynamically IEEE 802.15.4g compatible whitener and 16-bit or 32-bit CRC
struct { ... } rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::formatConf |
uint16_t rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::frontEndMode |
0x00: Differential mode
0x01: Single-ended mode RFP
0x02: Single-ended mode RFN
0x05 Single-ended mode RFP with external frontend control on RF pins (RFN and RXTX)
0x06 Single-ended mode RFN with external frontend control on RF pins (RFP and RXTX)
Others: Reserved
uint16_t rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::biasMode |
0: Internal bias
1: External bias
uint16_t rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::analogCfgMode |
0x00: Write analog configuration.
Required first time after boot and when changing frequency band or front-end configuration
0x2D: Keep analog configuration.
May be used after standby or when changing mode with the same frequency band and front-end configuration
Others: Reserved
uint16_t rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::bNoFsPowerUp |
0: Power up frequency synth
1: Do not power up frequency synth
uint16_t rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::bSynthNarrowBand |
0: Normal synth mode
1: Narrow-band synth mode
struct { ... } rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::config |
Configuration options.
uint16_t rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::txPower |
Transmit power.
uint32_t * rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::pRegOverride |
Pointer to a list of hardware and configuration registers to override. If NULL, no override is used.
uint16_t rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::centerFreq |
Center frequency of the frequency band used, in MHz; used for calculating some internal TX and RX parameters. For a single channel RF system, this should be set equal to the RF frequency used. For a multi channel RF system (e.g. frequency hopping spread spectrum), this should be set equal to the center frequency of the frequency band used.
int16_t rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::intFreq |
Intermediate frequency to use for RX, in MHz on 4.12 signed format. TX will use same intermediate frequency if supported, otherwise 0.
0x8000: Use default.
uint8_t rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::loDivider |
LO frequency divider setting to use. Supported values: 0, 2, 4, 5, 6, 10, 12, 15, and 30.
uint8_t rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::__dummy0 |
uint16_t rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::__dummy1 |
uint32_t * rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::pRegOverrideTxStd |
Pointer to a list of hardware and configuration registers to override when switching to standard PA. Used by RF driver only, not radio CPU.
uint32_t * rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::pRegOverrideTx20 |
Pointer to a list of hardware and configuration registers to override when switching to 20-dBm PA. Used by RF driver only, not radio CPU.
struct { ... } rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::startTrigger |
Identification of the trigger that starts the operation.
struct { ... } rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::condition |
struct { ... } rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::modulation |
struct { ... } rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::symbolRate |
Symbol rate setting.
struct { ... } rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::preamConf |
struct { ... } rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::formatConf |
struct { ... } rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::config |
Configuration options.
struct { ... } rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::startTrigger |
Identification of the trigger that starts the operation.
struct { ... } rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::condition |
struct { ... } rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::modulation |
struct { ... } rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::symbolRate |
Symbol rate setting.
struct { ... } rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::preamConf |
struct { ... } rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::formatConf |
struct { ... } rfc_CMD_PROP_RADIO_DIV_SETUP_PA_s::config |
Configuration options.