![](https://csdnimg.cn/release/download_crawler_static/86332142/bge.jpg)
AN633
14 Rev. 0.7
The following sections describe the SPI transactions of sending commands and getting information from the chip.
7.1. Sending Command to Radio
The behavior of the radio can be changed by sending API commands to the radio (e.g., changing the power states,
start packet transmission, etc.). The radio can be configured through several so called "properties". The properties
hold radio configuration settings, such as interrupt settings, modem parameters, packet handler settings, etc. The
properties can be set and read via API commands. For most of the commands the host MCU does not expect any
response from the radio chip. Other commands are used to read back a property from the chip such as checking
the interrupt status flags, reading the transmit/receive FIFOs.
After the radio receives a command, it processes the request. During this time, the radio is not capable of receiving
a new command. The host MCU has to poll the radio and identify when the next command can be sent. The clear
IR_CAL_COMMANDS
0x17 IRCAL Image rejection calibration.
0x19 IRCAL_MANUAL Image rejection calibration.
TX_COMMANDS
0x31 START_TX Switches to TX state and starts transmission of a packet.
0x37 TX_HOP Hop to a new frequency while in TX.
0x66 WRITE_TX_FIFO Writes data byte(s) to the TX FIFO.
RX_COMMANDS
0x16 PACKET_INFO Returns information about the length of the variable field in the
last packet received and (optionally) overrides field length.
0x22 GET_MODEM_STATUS Returns the interrupt status of the Modem Interrupt Group (both
STATUS and PENDING). Optionally, it may be used to clear
latched (PENDING) interrupt events.
0x32 START_RX Switches to RX state and starts reception of a packet.
0x36 RX_HOP Manually hop to a new frequency while in RX mode.
0x77 READ_RX_FIFO Reads data byte(s) from the RX FIFO.
ADVANCED_COMMANDS
0x14 GET_ADC_READING Performs conversions using the Auxiliary ADC and returns the
results of those conversions.
0x21 GET_PH_STATUS Returns the interrupt status of the Packet Handler Interrupt
Group (both STATUS and PENDING). Optionally, it may be
used to clear latched (PENDING) interrupt events.
0x23 GET_CHIP_STATUS Returns the interrupt status of the Chip Interrupt Group (both
STATUS and PENDING). Optionally, it may be used to clear
latched (PENDING) interrupt events.
Table 4. Command Summary (Continued)
Command ID Name Description
可以通过向无线电发送API命令来改变无线电的行为(例如,改变功率状态,开始分组传输等)。 收音机可以通
过几个所谓的“属性”进行配置。 属性保存无线电配置设置,如中断设置,调制解调器参数,数据包处理程序设
置等。可以通过API命令设置和读取属性。 对于大多数命令,主机MCU不期望来自无线电芯片的任何响应。 其他
命令用于从芯片读回属性,例如检查中断状态标志,读取发送/接收FIFO。