This project requires that a Host running the Gazell Link Layer Host with Payload in ACK example be used as a counterpart for receiving the data. This can be on either nRF51 device or a nRF24Lxx device running the gzll_host_ack_payload example in the nRFgo SDK.
This example sends a packet and adds a new packet to the TX queue every time it receives an ACK. Before adding a packet to the TX queue, the contents of the GPIO Port BUTTONS is copied to the first payload byte (byte 0). When an ACK is received, the contents of the first payload byte of the ACK are output on GPIO Port LEDS.
- Returns
- ANSI required int return type.
This callback is made when the Device receives an ACK (acknowledgement) packet.
- See Also
- nrf_gzll_ack_payload_received.
- Parameters
-
pipe | is the pipe on which an ACK packet was received. |
tx_info | struct used to indicate whether a payload was received in the ack, as well as the number of TX attempts and channel switches required. |
This callback is made when a packet does not receive an ACK after nrf_gzll_max_retries is reached. The packet is deleted by Gazell.
- Parameters
-
pipe | is the pipe on which the transmission failed. |
tx_info | struct used to indicate whether a payload was received in the ack, as well as RSSI and the number of TX attempts and channel switches required. |
This callback is made when a Host receives a data packet from a Device.
- Parameters
-
pipe | is the pipe on which the data packet was received. |
rx_info | struct used to indicate whether a payload was removed from the pipe's TX FIFO, as well as RSSI. |
void nrf_gzll_disabled |
( |
void |
| ) |
|
This is called after Gazell enters the disabled state. There is no further CPU use by Gazell, the radio is disabled and the timer is powered down.