UWB-Tracking
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
TdoaDevice Class Reference

The base class for TDOA (Time Difference of Arrival) devices. More...

#include <tdoa-device.h>

Inheritance diagram for TdoaDevice:
TdoaAnchor TdoaTag

Public Member Functions

 TdoaDevice (uwb_addr src)
 Constructor for the TdoaDevice class. More...
 
 ~TdoaDevice ()
 Destructor for the TdoaDevice class. More...
 
virtual void setup ()
 Perform setup and configuration of the TDOA device. More...
 
void enable_leds ()
 Enable LEDs on the TDOA device if available. More...
 
virtual void loop ()
 Main loop function for the TDOA device. More...
 
char * get_type ()
 Get the type of the TDOA device. More...
 

Protected Attributes

uwb_addr src_address
 
String type
 
uint8_t tx_msg [10]
 
uint8_t rx_buffer [FRAME_LENGTH]
 
uint32_t status_reg
 Status register value. More...
 
int8_t status
 Status variable indicating the device's current status. More...
 
dwt_config_t config
 Configuration settings for the DW3000 device. More...
 

Detailed Description

The base class for TDOA (Time Difference of Arrival) devices.

Constructor & Destructor Documentation

◆ TdoaDevice()

TdoaDevice ( uwb_addr  src)

Constructor for the TdoaDevice class.

Parameters
srcThe source address of the TDOA device.

◆ ~TdoaDevice()

~TdoaDevice ( )
inline

Destructor for the TdoaDevice class.

Member Function Documentation

◆ enable_leds()

void enable_leds ( )

Enable LEDs on the TDOA device if available.

◆ get_type()

char * get_type ( )
inline

Get the type of the TDOA device.

Returns
A pointer to a character array representing the device type.

◆ loop()

void loop ( )
virtual

Main loop function for the TDOA device.

Reimplemented in TdoaAnchor, and TdoaTag.

◆ setup()

void setup ( )
virtual

Perform setup and configuration of the TDOA device.

Reimplemented in TdoaAnchor, and TdoaTag.

Member Data Documentation

◆ config

dwt_config_t config
protected

Configuration settings for the DW3000 device.

◆ rx_buffer

uint8_t rx_buffer[FRAME_LENGTH]
protected

◆ src_address

uwb_addr src_address
protected

◆ status

int8_t status
protected

Status variable indicating the device's current status.

◆ status_reg

uint32_t status_reg
protected

Status register value.

◆ tx_msg

uint8_t tx_msg[10]
protected

◆ type

String type
protected

The documentation for this class was generated from the following files: