The TdoaAnchor class represents a TDOA anchor device.
More...
#include <tdoa-anchor.h>
|
static void | rx_ok_cb (const dwt_cb_data_t *cb_data) |
| Callback function for successful RX operation. More...
|
|
static void | rx_err_cb (const dwt_cb_data_t *cb_data) |
| Callback function for RX error. More...
|
|
|
char | pdoa_str [16] = {0} |
| A character array to store the PdoA value as a string. More...
|
|
char | toa_str [50] = {0} |
| A character array to store the ToA value as a string. More...
|
|
The TdoaAnchor class represents a TDOA anchor device.
This class extends the TdoaDevice class and provides specific functionality for TDOA anchor devices.
◆ TdoaAnchor()
Constructor for the TdoaAnchor class.
Initializes a TDOA anchor device with the specified source address.
- Parameters
-
src | The source address of the TDOA anchor device. |
◆ ~TdoaAnchor()
◆ loop()
Main loop for the TDOA anchor device.
This function represents the main loop of the TDOA anchor device. It waits for the reception of a new PdoA value and updates relevant information.
Reimplemented from TdoaDevice.
◆ rx_err_cb()
void rx_err_cb |
( |
const dwt_cb_data_t * |
cb_data | ) |
|
|
staticprivate |
Callback function for RX error.
This function is called when an RX error occurs. It clears RX error events and activates reception.
- Parameters
-
cb_data | A pointer to the callback data structure. |
◆ rx_ok_cb()
void rx_ok_cb |
( |
const dwt_cb_data_t * |
cb_data | ) |
|
|
staticprivate |
Callback function for successful RX operation.
This function is called when a successful RX operation occurs. It reads STS quality and STS status, updates PdoA and timestamp information, and activates reception.
- Parameters
-
cb_data | A pointer to the callback data structure. |
◆ setup()
Initialize the TDOA anchor device.
This function sets up the TDOA anchor device, registers callbacks, enables interrupts, and installs the IRQ handler.
Reimplemented from TdoaDevice.
◆ pdoa_str
A character array to store the PdoA value as a string.
◆ toa_str
A character array to store the ToA value as a string.
The documentation for this class was generated from the following files: