Functions | |
void | nrf_802154_tx_ack_started (const uint8_t *p_data) |
Notifies about the start of the ACK frame transmission. More... | |
void | nrf_802154_received (uint8_t *p_data, uint8_t length, int8_t power, uint8_t lqi) |
Notifies that a frame was received. More... | |
void | nrf_802154_received_timestamp (uint8_t *p_data, uint8_t length, int8_t power, uint8_t lqi, uint32_t time) |
Notifies that a frame was received at a given time. More... | |
void | nrf_802154_receive_failed (nrf_802154_rx_error_t error) |
Notifies that the reception of a frame failed. More... | |
void | nrf_802154_tx_started (const uint8_t *p_frame) |
Notifies that transmitting a frame has started. More... | |
void | nrf_802154_transmitted (const uint8_t *p_frame, uint8_t *p_ack, uint8_t length, int8_t power, uint8_t lqi) |
Notifies that a frame was transmitted. More... | |
void | nrf_802154_transmitted_timestamp (const uint8_t *p_frame, uint8_t *p_ack, uint8_t length, int8_t power, uint8_t lqi, uint32_t time) |
Notifies that a frame was transmitted. More... | |
void | nrf_802154_transmit_failed (const uint8_t *p_frame, nrf_802154_tx_error_t error) |
Notifies that a frame was not transmitted due to a busy channel. More... | |
void | nrf_802154_energy_detected (uint8_t result) |
Notifies that the energy detection procedure finished. More... | |
void | nrf_802154_energy_detection_failed (nrf_802154_ed_error_t error) |
Notifies that the energy detection procedure failed. More... | |
void | nrf_802154_cca_done (bool channel_free) |
Notifies that the CCA procedure has finished. More... | |
void | nrf_802154_cca_failed (nrf_802154_cca_error_t error) |
Notifies that the CCA procedure failed. More... | |
void nrf_802154_cca_done | ( | bool | channel_free | ) |
Notifies that the CCA procedure has finished.
[in] | channel_free | Indication if the channel is free. |
void nrf_802154_cca_failed | ( | nrf_802154_cca_error_t | error | ) |
Notifies that the CCA procedure failed.
[in] | error | Reason of the failure. |
void nrf_802154_energy_detected | ( | uint8_t | result | ) |
Notifies that the energy detection procedure finished.
[in] | result | Maximum energy detected during the energy detection procedure. |
void nrf_802154_energy_detection_failed | ( | nrf_802154_ed_error_t | error | ) |
Notifies that the energy detection procedure failed.
[in] | error | Reason of the failure. |
void nrf_802154_receive_failed | ( | nrf_802154_rx_error_t | error | ) |
Notifies that the reception of a frame failed.
[in] | error | Error code that indicates the reason of the failure. |
void nrf_802154_received | ( | uint8_t * | p_data, |
uint8_t | length, | ||
int8_t | power, | ||
uint8_t | lqi | ||
) |
Notifies that a frame was received.
p_data
is not modified by the radio driver (and cannot be used to receive a frame) until nrf_802154_buffer_free is called. p_data
can be modified by the function handler (and other modules) until nrf_802154_buffer_free is called.* p_data * v * +-----+-----------------------------------------------------------+------------+ * | PHR | MAC Header and payload | FCS | * +-----+-----------------------------------------------------------+------------+ * | | * | <------------------ length -----------------------------> | *
[in] | p_data | Pointer to a buffer that contains only the payload of the received frame (PSDU without FCS). |
[in] | length | Length of the received payload. |
[in] | power | RSSI of the received frame. |
[in] | lqi | LQI of the received frame. |
void nrf_802154_received_timestamp | ( | uint8_t * | p_data, |
uint8_t | length, | ||
int8_t | power, | ||
uint8_t | lqi, | ||
uint32_t | time | ||
) |
Notifies that a frame was received at a given time.
This function works like nrf_802154_received and adds a timestamp to the parameter list.
time
parameter.[in] | p_data | Pointer to a buffer that contains only the payload of the received frame (PSDU without FCS). |
[in] | length | Length of the received payload. |
[in] | power | RSSI of the received frame. |
[in] | lqi | LQI of the received frame. |
[in] | time | Timestamp taken when the last symbol of the frame was received, in microseconds (us), or NRF_802154_NO_TIMESTAMP if the timestamp is invalid. |
void nrf_802154_transmit_failed | ( | const uint8_t * | p_frame, |
nrf_802154_tx_error_t | error | ||
) |
Notifies that a frame was not transmitted due to a busy channel.
This function is called if the transmission procedure fails.
[in] | p_frame | Pointer to a buffer that contains PHR and PSDU of the frame that was not transmitted. |
[in] | error | Reason of the failure. |
void nrf_802154_transmitted | ( | const uint8_t * | p_frame, |
uint8_t * | p_ack, | ||
uint8_t | length, | ||
int8_t | power, | ||
uint8_t | lqi | ||
) |
Notifies that a frame was transmitted.
p_ack
is not modified by the radio driver (and cannot be used to receive a frame) until nrf_802154_buffer_free is called. p_ack
may be modified by the function handler (and other modules) until nrf_802154_buffer_free is called. [in] | p_frame | Pointer to a buffer that contains PHR and PSDU of the transmitted frame. |
[in] | p_ack | Pointer to a buffer that contains only the received ACK payload (PSDU excluding FCS). If ACK was not requested, p_ack is set to NULL. |
[in] | length | Length of the received ACK payload or 0 if ACK was not requested. |
[in] | power | RSSI of the received frame or 0 if ACK was not requested. |
[in] | lqi | LQI of the received frame or 0 if ACK was not requested. |
void nrf_802154_transmitted_timestamp | ( | const uint8_t * | p_frame, |
uint8_t * | p_ack, | ||
uint8_t | length, | ||
int8_t | power, | ||
uint8_t | lqi, | ||
uint32_t | time | ||
) |
Notifies that a frame was transmitted.
This function works like nrf_802154_transmitted and adds a timestamp to the parameter list.
timestamp
may be inaccurate due to software latency (IRQ handling). timestamp
granularity depends on the granularity of the timer driver in the platform/timer directory. [in] | p_frame | Pointer to the buffer containing PHR and PSDU of the transmitted frame. |
[in] | p_ack | Pointer to the buffer containing only the received ACK payload (PSDU excluding FCS). If ACK was not requested, p_ack is set to NULL. |
[in] | length | Length of the received ACK payload. |
[in] | power | RSSI of the received frame or 0 if ACK was not requested. |
[in] | lqi | LQI of the received frame or 0 if ACK was not requested. |
[in] | time | Timestamp taken when the last symbol of ACK is received or 0 if ACK was not requested. |
void nrf_802154_tx_ack_started | ( | const uint8_t * | p_data | ) |
Notifies about the start of the ACK frame transmission.
[in] | p_data | Pointer to a buffer with PHR and PSDU of the ACK frame. |
void nrf_802154_tx_started | ( | const uint8_t * | p_frame | ) |
Notifies that transmitting a frame has started.
[in] | p_frame | Pointer to a buffer that contains PHR and PSDU of the frame being transmitted. |