The TofResponder class represents a TOF responder device.
More...
#include <tof-responder.h>
|
static void | rx_ok_cb (const dwt_cb_data_t *cb_data) |
| Static interrupt service routine (ISR) for successful frame reception. More...
|
|
|
Watchdog | my_watchdog |
|
uwb_addr | src_address |
|
String | type |
|
mac_frame_802_15_4_format_t | mac_frame |
|
uint8_t | poll_msg [4] = {'P', 'o', 'l', 'l'} |
|
uint8_t | resp_msg [16] = {0, 0, 0, 0, 0, 0, 0, 0, 'R', 'e', 's', 'p', 'o', 'n', 's', 'e'} |
|
uint8_t | rx_buffer [RX_BUF_LEN] |
|
uint32_t | status_reg |
|
dwt_aes_job_t | aes_job_tx |
|
dwt_aes_job_t | aes_job_rx |
|
int8_t | status |
|
dwt_aes_config_t | aes_config |
|
dwt_config_t | config |
|
dwt_aes_key_t | keys_options [NUM_OF_KEY_OPTIONS] |
|
The TofResponder class represents a TOF responder device.
◆ TofResponder()
Constructor for the TofResponder class.
- Parameters
-
src | The source address of the responder. |
dst | The destination address of the initiator. |
wdt_timeout | Time for the Watchdog, wdt triggers reboot. |
rx_diagnostics | Pointer to a JSON where the uwb diagnostics are stored. |
◆ ~TofResponder()
◆ loop()
Main loop of the TOF responder device.
Reimplemented from TofDevice.
◆ rx_ok_cb()
void rx_ok_cb |
( |
const dwt_cb_data_t * |
cb_data | ) |
|
|
staticprivate |
Static interrupt service routine (ISR) for successful frame reception.
- Parameters
-
cb_data | Callback data containing information about the received frame. |
◆ setup()
Initialize and configure the TOF responder device.
Reimplemented from TofDevice.
◆ update_rx_diagnostics()
void update_rx_diagnostics |
( |
| ) |
|
|
private |
updates the value of rx_diagnostics.
◆ dst_address
The destination address of the initiator.
◆ poll_rx_ts
Timestamp of poll frame reception.
◆ resp_tx_ts
Timestamp of response frame transmission.
◆ responseSemaphore
SemaphoreHandle_t responseSemaphore = NULL |
|
staticprivate |
FreeRTOS Semaphore to indicate a active response.
◆ rx_diagnostics_json
DynamicJsonDocument* rx_diagnostics_json |
|
private |
JSON holding the rx diagnostic information with style like uwb_diagnostic.json.
The documentation for this class was generated from the following files: