The TofInitiator class represents a Time-of-Flight (TOF) initiator device.
More...
#include <tof-initiator.h>
|
| 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 TofInitiator class represents a Time-of-Flight (TOF) initiator device.
◆ TofInitiator()
Constructor for the TofInitiator class.
- Parameters
-
| src | The source address for the TOF initiator. |
| dst | An array of destination addresses for the responders. |
| wdt_timeout | Timeout for the Watchdog, wdt triggers reboot. |
| num_of_responders | The number of responder devices. |
◆ ~TofInitiator()
◆ loop()
Main loop of the TOF initiator device.
Reimplemented from TofDevice.
◆ process_tof_response()
| void process_tof_response |
( |
| ) |
|
|
private |
Process the TOF response received from a responder. The calculated distance is stored into temp_distance.
◆ send_tof_request()
Send a TOF request to a specific destination address.
- Parameters
-
| dest | The destination address of the responder. |
◆ setup()
Initialize and configure the TOF initiator device.
Reimplemented from TofDevice.
◆ current_responder
| uint8_t current_responder |
|
private |
◆ dst_address
◆ frame_cnt
◆ nonce
◆ seq_cnt
◆ temp_distance
◆ tof
◆ total_responders
The documentation for this class was generated from the following files: