UWB-Tracking
|
The base class for Time-of-Flight (TOF) devices. More...
#include <tof-device.h>
Public Member Functions | |
TofDevice (uwb_addr src, unsigned long wdt_timeout) | |
Constructor for the TofDevice class. More... | |
~TofDevice () | |
Destructor for the TofDevice class. More... | |
virtual void | setup () |
Initialize and configure the TOF device. More... | |
void | start_wdt () |
Start the WDT to handle failure events. More... | |
void | enable_leds () |
Enable LEDs for debugging purposes. More... | |
virtual void | loop () |
Main loop of the TOF device. More... | |
char * | get_type () |
Get the type of the TOF device. More... | |
Protected Attributes | |
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 base class for Time-of-Flight (TOF) devices.
void enable_leds | ( | ) |
Enable LEDs for debugging purposes.
|
inline |
Get the type of the TOF device.
|
virtual |
Main loop of the TOF device.
Reimplemented in TofInitiator, and TofResponder.
|
virtual |
Initialize and configure the TOF device.
Setup the TOF device.
Reimplemented in TofInitiator, and TofResponder.
void start_wdt | ( | ) |
Start the WDT to handle failure events.
Start the Watchdog timer to reset controller if necessary.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |