Texas Instruments CC2650DK Benutzerhandbuch

Seite von 1570
RF Core HAL
On reception, the radio CPU sets the RAT channel given by ratCh in compare mode, and sets the channel
compare time to compareTime, which also arms the channel. A channel event occurs at the given time,
and this can be enabled as an RF HW interrupt to the system CPU through the RFC_DBELL module.
The channel number must indicate a channel that is not reserved for use by the radio CPU. Otherwise, the
radio CPU returns ParError in CMDSTA. If the compare time is in the past when the command is
evaluated, the radio CPU returns ContextError in CMDSTA and disables the RAT channel. If the compare
event is successfully set up, the radio CPU returns Done in CMDSTA.
23.3.4.10 CMD_SET_RAT_CPT: Set RAT Channel to Capture Mode
Command ID number: 0x0603
CMD_SET_RAT_CPT is an immediate command that takes the parameters listed in
.
Table 23-40. CMD_SET_RAT_CPT Command Format
Bytes
Field Name
Bits
Bit Field Name
Type
Description
0–1
commandNo
W
The command ID number
0–2
Reserved
3–7
inputSrc
W
Input source indicator
8–11
ratCh
W
The radio timer channel number
0: Single capture mode
12
bRepeated
W
1: Repeated capture mode
2–3
config
Input mode
00: Rising edge
13–14
inputMode
W
01: Falling edge
10: Both edges
11: Reserved
On reception, the radio CPU sets the RAT channel given by config.ratCh in capture mode. If
config.bRepeated is 0, the channel is set to single capture mode, otherwise to repeated capture mode.
The radio CPU sets the input source to config.inputSrc and the input mode to config.inputMode. If the
channel is set in single capture mode, it is also armed. This causes a channel event to occur when
capture happens, and can be enabled as an RF HW interrupt to the system CPU through the RFC_DBELL
module.
CMD_SET_RAT_CMP may be sent as a direct command. If so, bits 2–15 of the config word are given by
bits 2–15 of CMDR (bits 0–1 of config are not used).
The channel number must indicate a channel that is not reserved for use by the radio CPU. Otherwise, the
radio CPU returns ParError in CMDSTA. If the channel is successfully set up, the radio CPU returns Done
in CMDSTA.
23.3.4.11 CMD_DISABLE_RAT_CH: Disable RAT Channel
Command ID number: 0x0408
CMD_DISABLE_RAT_CH is an immediate command that takes the parameters listed in
Table 23-41. CMD_DISABLE_RAT_CH Command Format
Bytes
Field Name
Bits
Bit Field Name
Type
Description
0–1
commandNo
W
The command ID number
2
ratCh
W
The radio timer channel number
1484
Radio
SWCU117A – February 2015 – Revised March 2015
Copyright © 2015, Texas Instruments Incorporated