Download Print this page

Texas Instruments SimpleLink CC2620 Technical Reference Manual page 1560

Zigbee rf4ce wireless mcu simplelink cc13 series; simplelink cc26 series

Advertisement

Bluetooth Low Energy
23.6.4.2 Slave Command
A slave radio operation is started by a CMD_BLE_SLAVE command. In the command structure, it has a
pParams parameter of the type defined in
Table
23-98. The operation starts with reception. The parameters pParams->timeoutTrigger and
pParams->timeoutTime define the time to end the operation if no sync is found by the demodulator. The
startTrigger and pParams->timeoutTrigger together define the receive window for the slave.
The very first received packet of a new LL connection on a slave is given special treatment, and is
signaled by the system CPU by setting pParams->seqStat.bFirstPkt to 1 when starting the first slave
operation of a new connection. When this flag is set, the received packet is not viewed as an ACK or
NACK of a previous transmitted packet. When a packet has been transmitted,
pParams->seqStat.bFirstPkt is cleared by the radio CPU.
The radio CPU writes a timestamp of the first received packet of the radio operation into pOutput-
>timeStamp. The captured time can be used by the system CPU as an anchor point to calculate the start
of future slave commands. This time is also defined as event 1, and may be used for timing subsequent
chained operations. If no anchor point is found, event 1 is the time of the start of the slave operation.
If a packet is received with CRC error, the radio CPU ends the radio operation if the previous packet in the
same radio operation was also received with CRC error (see
received, the radio CPU starts the transmitter and transmits from the TX queue, or transmits an
automatically empty packet if the TX queue is empty. The transmission may be a retransmission. Unless
the operation ends due to the criteria listed in
done.
A slave operation ends due to one of the causes listed in
structure after the operation is ended indicates the reason why the operation ended. In all cases, a
COMMAND_DONE interrupt is raised. In each case, it is indicated if the result is TRUE, FALSE, or
ABORT, which decides the next action.
Condition
Transmitted packet with MD=0 after having successfully received packet
where MD bit of header is 0
Transmitted packet with MD=0 after having received packet which did not fit
in RX queue
Finished transmitting packet and nPkt counted to 0
Trigger indicated by pParams->timeoutTrigger occurred before demodulator
sync is ever obtained after starting the command
No sync obtained on receive operation after transmit
Two subsequent packets in the same operation were received with CRC
error
Finished transmitting packet after the internal counter nNack had counted
down to 0
Finished transmitting packet after having observed trigger indicated by
pParams->endTrigger
Finished transmitting packet after having observed CMD_STOP
Received CMD_ABORT
Illegal value of channel
TX data entry length field has illegal value
1560
Radio
Table
23-91, and a pOutput parameter of the type defined in
Table
23-113, the receiver starts after the transmission is
Table 23-113. End of Slave Operation
Copyright © 2015, Texas Instruments Incorporated
Table
23-113). Otherwise if a packet is
Table
23-113. The status field of the command
Status Code
BLE_DONE_OK
BLE_DONE_OK
BLE_DONE_OK
BLE_DONE_RXTIMEOUT
BLE_DONE_NOSYNC
BLE_DONE_RXERR
BLE_DONE_MAXNACK
BLE_DONE_ENDED
BLE_DONE_STOPPED
BLE_DONE_ABORT
BLE_ERROR_PAR
BLE_ERROR_PAR
SWCU117C – February 2015 – Revised September 2015
Submit Documentation Feedback
www.ti.com
Result
TRUE
TRUE
TRUE
FALSE
TRUE
TRUE
TRUE
FALSE
FALSE
ABORT
ABORT
ABORT

Hide quick links:

Advertisement

loading