SWCU192 November 2021 CC1312R7 , CC1352P7 , CC2652P7 , CC2652R7
Command ID number: 0x0603
CMD_SET_RAT_CPT is an immediate command that takes the parameters listed in Table 26-43.
Byte Index | Field Name | Bits | Bit Field Name | Type | Description |
---|---|---|---|---|---|
0–1 | commandNo | W | The command ID number | ||
2–3 | config | 0–2 | Reserved | ||
3–7 | inputSrc | W | Input source indicator: 22: RFC_GPI0 23: RFC_GPI1 Others: Reserved | ||
8–11 | ratCh | W | The radio timer channel number | ||
12 | bRepeated | W | 0: Single capture mode 1: Repeated capture mode | ||
13–14 | inputMode | W | Input mode: 00: Rising edge 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, the channel is set 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 occurs, and can be enabled as an RF hardware 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.