37 #ifndef __COMMON_CMD_H 38 #define __COMMON_CMD_H 44 #ifndef __RFC_STRUCT_ATTR 46 #define __RFC_STRUCT_ATTR __attribute__ ((aligned (4))) 47 #elif defined(__TI_ARM__) 48 #define __RFC_STRUCT_ATTR __attribute__ ((__packed__,aligned (4))) 50 #define __RFC_STRUCT_ATTR 130 uint8_t triggerType:4;
147 #define CMD_NOP 0x0801 157 uint8_t triggerType:4;
174 #define CMD_RADIO_SETUP 0x0802 184 uint8_t triggerType:4;
205 uint16_t frontEndMode:3;
212 uint16_t analogCfgMode:6;
214 uint16_t bNoFsPowerUp:1;
232 #define CMD_FS 0x0803 242 uint8_t triggerType:4;
271 #define CMD_FS_OFF 0x0804 281 uint8_t triggerType:4;
298 #define CMD_RX_TEST 0x0807 308 uint8_t triggerType:4;
328 uint8_t triggerType:4;
343 #define CMD_TX_TEST 0x0808 353 uint8_t triggerType:4;
368 uint8_t whitenMode:2;
378 uint8_t triggerType:4;
393 #define CMD_SYNC_STOP_RAT 0x0809 403 uint8_t triggerType:4;
423 #define CMD_SYNC_START_RAT 0x080A 433 uint8_t triggerType:4;
453 #define CMD_RESYNC_RAT 0x0816 463 uint8_t triggerType:4;
483 #define CMD_COUNT 0x080B 493 uint8_t triggerType:4;
512 #define CMD_FS_POWERUP 0x080C 522 uint8_t triggerType:4;
541 #define CMD_FS_POWERDOWN 0x080D 551 uint8_t triggerType:4;
568 #define CMD_SCH_IMM 0x0810 578 uint8_t triggerType:4;
598 #define CMD_COUNT_BRANCH 0x0812 608 uint8_t triggerType:4;
628 #define CMD_PATTERN_CHECK 0x0813 638 uint8_t triggerType:4;
650 uint16_t operation:2;
658 uint16_t signExtend:5;
684 uint8_t triggerType:4;
705 uint16_t frontEndMode:3;
712 uint16_t analogCfgMode:6;
714 uint16_t bNoFsPowerUp:1;
725 uint32_t* pRegOverrideTxStd;
727 uint32_t* pRegOverrideTx20;
736 #define CMD_ABORT 0x0401 746 #define CMD_STOP 0x0402 756 #define CMD_GET_RSSI 0x0403 766 #define CMD_UPDATE_RADIO_SETUP 0x0001 778 #define CMD_TRIGGER 0x0404 789 #define CMD_GET_FW_INFO 0x0002 803 #define CMD_START_RAT 0x0405 813 #define CMD_PING 0x0406 823 #define CMD_READ_RFREG 0x0601 835 #define CMD_ADD_DATA_ENTRY 0x0005 848 #define CMD_REMOVE_DATA_ENTRY 0x0006 861 #define CMD_FLUSH_QUEUE 0x0007 874 #define CMD_CLEAR_RX 0x0008 886 #define CMD_REMOVE_PENDING_ENTRIES 0x0009 899 #define CMD_SET_RAT_CMP 0x000A 912 #define CMD_SET_RAT_CPT 0x0603 920 uint16_t bRepeated:1;
921 uint16_t inputMode:2;
934 #define CMD_DISABLE_RAT_CH 0x0408 945 #define CMD_SET_RAT_OUTPUT 0x0604 951 uint16_t outputSel:3;
952 uint16_t outputMode:3;
967 #define CMD_ARM_RAT_CH 0x0409 978 #define CMD_DISARM_RAT_CH 0x040A 989 #define CMD_SET_TX_POWER 0x0010 1000 #define CMD_SET_TX20_POWER 0x0014 1012 #define CMD_CHANGE_PA 0x0015 1025 #define CMD_UPDATE_HPOSC_FREQ 0x0608 1036 #define CMD_UPDATE_FS 0x0011 1052 #define CMD_MODIFY_FS 0x0013 1064 #define CMD_BUS_REQUEST 0x040E 1076 #define CMD_SET_CMD_START_IRQ 0x0411 uint32_t * pRegOverride
Pointer to a list of hardware and configuration registers to override. If NULL, no override is used...
Definition: rf_common_cmd.h:724
Enable or disable generation of IRQ when a radio operation command starts.
Definition: rf_common_cmd.h:1078
uint16_t commandNo
The command ID number 0x0408.
Definition: rf_common_cmd.h:937
uint16_t __dummy0
Definition: rf_common_cmd.h:890
uint16_t startOffset
The start of free RAM.
Definition: rf_common_cmd.h:794
uint16_t commandNo
The command ID number 0x0007.
Definition: rf_common_cmd.h:864
uint16_t counter
Counter. On start, the radio CPU decrements the value, and the end status of the operation differs if...
Definition: rf_common_cmd.h:504
#define __RFC_STRUCT
Definition: rf_common_cmd.h:41
Disable Radio Timer Channel.
Definition: rf_common_cmd.h:936
Request System Bus to be Availbale.
Definition: rf_common_cmd.h:1066
uint8_t ratCh
The radio timer channel number.
Definition: rf_common_cmd.h:938
uint16_t commandNo
The command ID number 0x0803.
Definition: rf_common_cmd.h:235
uint16_t commandNo
The command ID number 0x0014.
Definition: rf_common_cmd.h:1003
uint16_t counter
Counter. On start, the radio CPU decrements the value, and the end status of the operation differs if...
Definition: rf_common_cmd.h:619
Read RSSI Command.
Definition: rf_common_cmd.h:758
uint16_t status
An integer telling the status of the command. This value is updated by the radio CPU during operation...
Definition: rf_common_cmd.h:678
uint8_t mode
The main mode to use 0x00: BLE 0x01: IEEE 802.15.4 0x02: 2 Mbps GFSK 0x05: 5 Mbps coded 8-FSK 0x...
Definition: rf_common_cmd.h:195
uint16_t __dummy0
Definition: rf_common_cmd.h:1004
Frequency Synthesizer Programming Command.
Definition: rf_common_cmd.h:234
Synchrously Start Radio Timer Command.
Definition: rf_common_cmd.h:425
Arm Radio Timer Channel.
Definition: rf_common_cmd.h:969
uint16_t commandNo
The command ID number 0x0801.
Definition: rf_common_cmd.h:150
uint16_t status
An integer telling the status of the command. This value is updated by the radio CPU during operation...
Definition: rf_common_cmd.h:151
uint16_t __dummy0
Definition: rf_common_cmd.h:770
Clear all RX Queue Entries.
Definition: rf_common_cmd.h:876
uint16_t commandNo
The command ID number 0x0013.
Definition: rf_common_cmd.h:1055
ratmr_t endTime
Time to end the operation.
Definition: rf_common_cmd.h:336
uint16_t frequency
The frequency in MHz to tune to.
Definition: rf_common_cmd.h:1056
uint16_t status
An integer telling the status of the command. This value is updated by the radio CPU during operation...
Definition: rf_common_cmd.h:397
uint8_t * pFirstEntry
Pointer to the first entry that was removed.
Definition: rf_common_cmd.h:867
Stop Running Radio Operation Command Gracefully.
Definition: rf_common_cmd.h:748
uint16_t txPower
Transmit power.
Definition: rf_common_cmd.h:223
ratmr_t rat0
The desired RAT timer value corresponding to the value the RAT would have had when the RTC was zero...
Definition: rf_common_cmd.h:445
Remove First Data Entry from Queue.
Definition: rf_common_cmd.h:850
uint16_t __dummy0
Definition: rf_common_cmd.h:839
ratmr_t startTime
Absolute or relative start time (depending on the value of startTrigger)
Definition: rf_common_cmd.h:606
uint16_t status
An integer telling the status of the command. This value is updated by the radio CPU during operation...
Definition: rf_common_cmd.h:487
Power down Frequency Syntheszier Command.
Definition: rf_common_cmd.h:543
uint8_t __dummy1
Definition: rf_common_cmd.h:376
uint16_t commandNo
The command ID number 0x0002.
Definition: rf_common_cmd.h:792
uint16_t commandNo
The command ID number 0x0409.
Definition: rf_common_cmd.h:970
uint16_t __dummy0
Definition: rf_common_cmd.h:474
uint16_t status
An integer telling the status of the command. This value is updated by the radio CPU during operation...
Definition: rf_common_cmd.h:236
uint16_t commandNo
The command ID number 0x0808.
Definition: rf_common_cmd.h:346
uint16_t freeRamSz
The size of free RAM.
Definition: rf_common_cmd.h:795
uint16_t commandNo
The command ID number 0x0008.
Definition: rf_common_cmd.h:877
uint32_t __dummy1
Definition: rf_common_cmd.h:1041
uint32_t tx20Power
New TX power setting.
Definition: rf_common_cmd.h:1005
dataQueue_t * pQueue
Pointer to the queue structure to be flushed.
Definition: rf_common_cmd.h:866
#define __RFC_STRUCT_ATTR
Definition: rf_common_cmd.h:50
dataQueue_t * pQueue
Pointer to the queue structure to which the entry will be added.
Definition: rf_common_cmd.h:840
uint8_t __dummy0
Definition: rf_common_cmd.h:904
uint16_t commandNo
The command ID number 0x0603.
Definition: rf_common_cmd.h:915
uint16_t commandNo
The command ID number 0x0001.
Definition: rf_common_cmd.h:769
uint16_t __dummy0
Definition: rf_common_cmd.h:444
dataQueue_t * pQueue
Pointer to the queue structure from which the entry will be removed.
Definition: rf_common_cmd.h:853
uint8_t bEna
1 to enable interrupt generation; 0 to disable it
Definition: rf_common_cmd.h:1080
uint8_t * pEntry
Pointer to the entry.
Definition: rf_common_cmd.h:841
Run Immidiate Command as Radio Operation Command.
Definition: rf_common_cmd.h:570
uint32_t __dummy2
Definition: rf_common_cmd.h:1042
uint16_t __dummy0
Definition: rf_common_cmd.h:852
Set Radio Timer Output to a Specified Mode.
Definition: rf_common_cmd.h:947
dataQueue_t * pQueue
Pointer to the queue structure to be cleared.
Definition: rf_common_cmd.h:879
ratmr_t startTime
Absolute or relative start time (depending on the value of startTrigger)
Definition: rf_common_cmd.h:431
uint16_t __dummy0
Definition: rf_common_cmd.h:533
uint16_t fractFreq
Fractional part of the frequency to tune to.
Definition: rf_common_cmd.h:254
uint16_t status
An integer telling the status of the command. This value is updated by the radio CPU during operation...
Definition: rf_common_cmd.h:457
Disarm Radio Timer Channel.
Definition: rf_common_cmd.h:980
uint16_t __dummy0
Definition: rf_common_cmd.h:589
uint16_t versionNo
Firmware version number.
Definition: rf_common_cmd.h:793
ratmr_t startTime
Absolute or relative start time (depending on the value of startTrigger)
Definition: rf_common_cmd.h:240
uint16_t __dummy0
Definition: rf_common_cmd.h:414
Command for Turning off Frequency Synthesizer.
Definition: rf_common_cmd.h:273
Counter Command.
Definition: rf_common_cmd.h:485
Power up Frequency Syntheszier Command.
Definition: rf_common_cmd.h:514
uint32_t mask
Bit mask to apply before comparison.
Definition: rf_common_cmd.h:667
uint32_t cmdstaVal
Value as would be returned in CMDSTA.
Definition: rf_common_cmd.h:591
uint32_t * pRegOverride
Pointer to a list of hardware and configuration registers to override as part of the change...
Definition: rf_common_cmd.h:1017
Generate Command Trigger.
Definition: rf_common_cmd.h:780
uint16_t commandNo
The command ID number 0x040A.
Definition: rf_common_cmd.h:981
ratmr_t startTime
Absolute or relative start time (depending on the value of startTrigger)
Definition: rf_common_cmd.h:520
uint16_t status
An integer telling the status of the command. This value is updated by the radio CPU during operation...
Definition: rf_common_cmd.h:516
uint16_t commandNo
The command ID number.
Definition: rf_common_cmd.h:123
uint16_t commandNo
The command ID number 0x080B.
Definition: rf_common_cmd.h:486
uint16_t commandNo
The command ID number 0x0006.
Definition: rf_common_cmd.h:851
Definition: rf_common_cmd.h:112
ratmr_t startTime
Absolute or relative start time (depending on the value of startTrigger)
Definition: rf_common_cmd.h:155
Set Transmit Power for 20-dBm PA.
Definition: rf_common_cmd.h:1002
Set New Synthesizer Frequency without Recalibration (Deprecated; use CMD_MODIFY_FS) ...
Definition: rf_common_cmd.h:1038
uint16_t status
An integer telling the status of the command. This value is updated by the radio CPU during operation...
Definition: rf_common_cmd.h:572
No Operation Command.
Definition: rf_common_cmd.h:149
Set New Frequency Offset for HPOSC.
Definition: rf_common_cmd.h:1027
Command for Checking a Value in Memory aginst a Pattern.
Definition: rf_common_cmd.h:630
uint32_t compareVal
Value to compare to.
Definition: rf_common_cmd.h:668
uint16_t __dummy0
Definition: rf_common_cmd.h:1016
uint8_t __dummy0
Definition: rf_common_cmd.h:374
uint16_t txPower
New TX power setting.
Definition: rf_common_cmd.h:993
Set Radio Timer Channel in Capture Mode.
Definition: rf_common_cmd.h:914
uint16_t commandNo
The command ID number 0x0402.
Definition: rf_common_cmd.h:749
Add Data Entry to Queue.
Definition: rf_common_cmd.h:837
dataQueue_t * pQueue
Pointer to the queue structure to be flushed.
Definition: rf_common_cmd.h:891
uint16_t commandNo
The command ID number 0x0401.
Definition: rf_common_cmd.h:739
ratmr_t endTime
Time to end the operation.
Definition: rf_common_cmd.h:386
uint16_t address
The offset from the start of the RF core HW register bank (0x40040000)
Definition: rf_common_cmd.h:827
Set Transmit Power.
Definition: rf_common_cmd.h:991
uint16_t commandNo
The command ID number 0x040E.
Definition: rf_common_cmd.h:1067
ratmr_t startTime
Absolute or relative start time (depending on the value of startTrigger)
Definition: rf_common_cmd.h:182
uint16_t __dummy0
Definition: rf_common_cmd.h:865
uint16_t commandNo
The command ID number 0x000A.
Definition: rf_common_cmd.h:902
Definition: rf_common_cmd.h:676
uint8_t bSysBusNeeded
0: System bus may sleep 1: System bus access needed
Definition: rf_common_cmd.h:1068
uint16_t commandNo
The command ID number 0x0411.
Definition: rf_common_cmd.h:1079
uint16_t __dummy3
Reserved
Definition: rf_common_cmd.h:264
ratmr_t startTime
Absolute or relative start time (depending on the value of startTrigger)
Definition: rf_common_cmd.h:576
rfc_radioOp_t * pNextOpIfOk
Pointer to next operation if comparison result was true.
Definition: rf_common_cmd.h:665
ratmr_t startTime
Absolute or relative start time (depending on the value of startTrigger)
Definition: rf_common_cmd.h:401
Request Information on the RF Core ROM Firmware.
Definition: rf_common_cmd.h:791
Radio Setup Command for Pre-Defined Schemes.
Definition: rf_common_cmd.h:176
uint16_t availRatCh
Bitmap of available RAT channels.
Definition: rf_common_cmd.h:796
uint8_t * pFirstEntry
Pointer to the first entry that was removed.
Definition: rf_common_cmd.h:892
uint16_t frequency
The frequency in MHz to tune to.
Definition: rf_common_cmd.h:1044
uint16_t commandNo
The command ID number 0x0809.
Definition: rf_common_cmd.h:396
uint32_t value
Returned value of the register.
Definition: rf_common_cmd.h:828
Transmitter Test Command.
Definition: rf_common_cmd.h:345
uint16_t commandNo
The command ID number 0x0813.
Definition: rf_common_cmd.h:631
uint16_t commandNo
The command ID number 0x080C.
Definition: rf_common_cmd.h:515
Counter Command with Branch of Command Chain.
Definition: rf_common_cmd.h:600
uint16_t commandNo
The command ID number 0x0601.
Definition: rf_common_cmd.h:826
Read RF Core Hardware Register.
Definition: rf_common_cmd.h:825
Set Radio Timer Channel in Compare Mode.
Definition: rf_common_cmd.h:901
uint32_t ratmr_t
Type definition for RAT.
Definition: rf_mailbox.h:57
uint16_t commandNo
The command ID number 0x0005.
Definition: rf_common_cmd.h:838
uint8_t __dummy1
Reserved
Definition: rf_common_cmd.h:262
ratmr_t rat0
The returned RAT timer value corresponding to the value the RAT would have had when the RTC was zero...
Definition: rf_common_cmd.h:415
Asynchronously Start Radio Timer Command.
Definition: rf_common_cmd.h:805
uint16_t commandNo
The command ID number.
Definition: rf_common_cmd.h:113
uint16_t status
An integer telling the status of the command. This value is updated by the radio CPU during operation...
Definition: rf_common_cmd.h:178
uint32_t * pRegOverride
Pointer to a list of hardware and configuration registers to override. If NULL, no override is used...
Definition: rf_common_cmd.h:534
uint16_t __dummy0
Definition: rf_common_cmd.h:878
uint16_t __dummy3
Definition: rf_common_cmd.h:1043
uint16_t commandNo
The command ID number 0x0405.
Definition: rf_common_cmd.h:806
uint16_t commandNo
The command ID number 0x0015.
Definition: rf_common_cmd.h:1015
Re-calculate rat0 value while RAT is running.
Definition: rf_common_cmd.h:455
uint8_t __dummy2
Reserved
Definition: rf_common_cmd.h:263
uint16_t status
An integer telling the status of the command. This value is updated by the radio CPU during operation...
Definition: rf_common_cmd.h:275
uint16_t status
An integer telling the status of the command. This value is updated by the radio CPU during operation...
Definition: rf_common_cmd.h:632
uint16_t __dummy0
Definition: rf_common_cmd.h:1040
uint8_t ratCh
The radio timer channel number.
Definition: rf_common_cmd.h:903
uint16_t commandNo
The command ID number 0x0802.
Definition: rf_common_cmd.h:177
ratmr_t startTime
Absolute or relative start time (depending on the value of startTrigger)
Definition: rf_common_cmd.h:306
uint8_t mode
The main mode to use 0x00: BLE 0x01: IEEE 802.15.4 0x02: 2 Mbps GFSK 0x05: 5 Mbps coded 8-FSK 0x...
Definition: rf_common_cmd.h:695
ratmr_t compareTime
The time at which the compare occurs.
Definition: rf_common_cmd.h:905
uint16_t status
An integer telling the status of the command. This value is updated by the radio CPU during operation...
Definition: rf_common_cmd.h:124
uint16_t commandNo
The command ID number 0x0010.
Definition: rf_common_cmd.h:992
uint16_t status
An integer telling the status of the command. This value is updated by the radio CPU during operation...
Definition: rf_common_cmd.h:302
Abort Running Radio Operation Command.
Definition: rf_common_cmd.h:738
Remove Pending Entries from Queue.
Definition: rf_common_cmd.h:888
uint16_t commandNo
The command ID number 0x0804.
Definition: rf_common_cmd.h:274
uint8_t triggerNo
Command trigger number.
Definition: rf_common_cmd.h:782
uint16_t status
An integer telling the status of the command. This value is updated by the radio CPU during operation...
Definition: rf_common_cmd.h:545
uint16_t commandNo
The command ID number 0x0011.
Definition: rf_common_cmd.h:1039
uint16_t fractFreq
Fractional part of the frequency to tune to.
Definition: rf_common_cmd.h:1045
uint8_t ratCh
The radio timer channel number.
Definition: rf_common_cmd.h:971
uint32_t syncWord
Sync word to use for receiver.
Definition: rf_common_cmd.h:335
uint8_t * pEntry
Pointer to the entry that was removed.
Definition: rf_common_cmd.h:854
uint16_t commandNo
The command ID number 0x0403.
Definition: rf_common_cmd.h:759
uint32_t * pRegOverride
Pointer to a list of hardware and configuration registers to override.
Definition: rf_common_cmd.h:771
uint16_t status
An integer telling the status of the command. This value is updated by the radio CPU during operation...
Definition: rf_common_cmd.h:347
Type definition for a data queue.
Definition: rf_mailbox.h:62
uint16_t txPower
Transmit power.
Definition: rf_common_cmd.h:723
uint16_t commandNo
The command ID number.
Definition: rf_common_cmd.h:677
ratmr_t startTime
Absolute or relative start time (depending on the value of startTrigger)
Definition: rf_common_cmd.h:491
uint16_t frequency
The frequency in MHz to tune to.
Definition: rf_common_cmd.h:253
uint16_t commandNo
The command ID number 0x0807.
Definition: rf_common_cmd.h:301
uint8_t ratCh
The radio timer channel number.
Definition: rf_common_cmd.h:982
uint32_t syncWord
Sync word to use for transmitter.
Definition: rf_common_cmd.h:385
uint8_t * pValue
Pointer to read from, or offset from last RX entry if patternOpt.bRxVal == 1.
Definition: rf_common_cmd.h:666
Respond with Command ACK Only.
Definition: rf_common_cmd.h:815
uint16_t commandNo
The command ID number 0x0810.
Definition: rf_common_cmd.h:571
uint16_t commandNo
The command ID number 0x0816.
Definition: rf_common_cmd.h:456
Set New Synthesizer Frequency without Recalibration.
Definition: rf_common_cmd.h:1054
uint16_t commandNo
The command ID number 0x080D.
Definition: rf_common_cmd.h:544
uint32_t * pRegOverride
Pointer to a list of hardware and configuration registers to override. If NULL, no override is used...
Definition: rf_common_cmd.h:224
uint16_t status
An integer telling the status of the command. This value is updated by the radio CPU during operation...
Definition: rf_common_cmd.h:602
uint32_t cmdrVal
Value as would be written to CMDR.
Definition: rf_common_cmd.h:590
ratmr_t startTime
Absolute or relative start time (depending on the value of startTrigger)
Definition: rf_common_cmd.h:351
ratmr_t startTime
Absolute or relative start time (depending on the value of startTrigger)
Definition: rf_common_cmd.h:682
uint16_t commandNo
The command ID number 0x0608.
Definition: rf_common_cmd.h:1028
Synchronize and Stop Radio Timer Command.
Definition: rf_common_cmd.h:395
int16_t freqOffset
Relative frequency offset, signed, scaled by 2-22
Definition: rf_common_cmd.h:1029
uint16_t commandNo
The command ID number 0x0406.
Definition: rf_common_cmd.h:816
ratmr_t startTime
Absolute or relative start time (depending on the value of startTrigger)
Definition: rf_common_cmd.h:461
ratmr_t rat0
The desired RAT timer value corresponding to the value the RAT would have had when the RTC was zero...
Definition: rf_common_cmd.h:475
uint16_t txWord
Value to send to the modem before whitening.
Definition: rf_common_cmd.h:375
Definition: rf_common_cmd.h:122
uint16_t fractFreq
Fractional part of the frequency to tune to.
Definition: rf_common_cmd.h:1057
Update Radio Settings Command.
Definition: rf_common_cmd.h:768
uint16_t commandNo
The command ID number 0x0812.
Definition: rf_common_cmd.h:601
uint16_t status
An integer telling the status of the command. This value is updated by the radio CPU during operation...
Definition: rf_common_cmd.h:427
Receiver Test Command.
Definition: rf_common_cmd.h:300
uint16_t commandNo
The command ID number 0x0009.
Definition: rf_common_cmd.h:889
uint16_t commandNo
The command ID number 0x0404.
Definition: rf_common_cmd.h:781
ratmr_t startTime
Absolute or relative start time (depending on the value of startTrigger)
Definition: rf_common_cmd.h:636
uint16_t commandNo
The command ID number 0x080A.
Definition: rf_common_cmd.h:426
ratmr_t startTime
Absolute or relative start time (depending on the value of startTrigger)
Definition: rf_common_cmd.h:128
uint8_t __dummy0
Reserved, always write 0
Definition: rf_common_cmd.h:261
uint16_t commandNo
The command ID number 0x0604.
Definition: rf_common_cmd.h:948
Flush Data Queue.
Definition: rf_common_cmd.h:863
ratmr_t startTime
Absolute or relative start time (depending on the value of startTrigger)
Definition: rf_common_cmd.h:279
ratmr_t startTime
Absolute or relative start time (depending on the value of startTrigger)
Definition: rf_common_cmd.h:549
Set TX power with possibility to switch between PAs.
Definition: rf_common_cmd.h:1014