DUNE: Uniform Navigational Environment
2020.01.0
|
Public Member Functions | |
Driver (Tasks::Task *task, IO::Handle *handle) | |
~Driver (void) | |
void | sendReset (void) |
void | setControl (void) |
void | setAddress (unsigned addr) |
void | setSourceLevel (unsigned value) |
void | setLowGain (bool low_gain) |
void | setIdleTimeout (unsigned value) |
void | setRetryCount (unsigned value) |
void | setRetryCountIM (unsigned value) |
void | setRetryTimeout (unsigned value) |
std::string | getFirmwareVersion (void) |
void | setExtendedNotifications (bool enable) |
void | setPromiscuous (bool enable) |
void | setHighestAddress (unsigned value) |
void | sendIM (const uint8_t *data, size_t data_size, unsigned dst, bool ack) |
void | sendBurst (const uint8_t *data, size_t data_size, unsigned dst) |
void | sendPBM (const uint8_t *data, size_t data_size, unsigned dst) |
unsigned | getPropagationTime (void) |
unsigned | getSoundSpeed (void) |
void | setSoundSpeed (unsigned value) |
void | setCarrierWaveformID (unsigned value) |
void | setPositionDataOutput (bool enable) |
uint32_t | getClock (void) |
std::vector< unsigned > | getMultipathStructure (void) |
void | switchToNoiseState (void) |
void | switchToListenState (void) |
void | parseUsblPosition (const std::string &str, RecvUsblPos &msg) |
void | parseUsblAngles (const std::string &str, RecvUsblAng &msg) |
void | parseReceivedBurst (const std::string &str, RecvIM &msg) |
void | parse (const std::string &str, RecvIM &msg, bool piggyback) |
void | setDeclination (double value) |
|
inline |
Constructor.
[in] | task | parent task. |
[in] | handle | I/O handle. |
|
inline |
Destructor.
|
inline |
Retrieve value of system clock.
Referenced by Transports::Evologics::Task::keepAlive().
|
inline |
Retrieve the firmware version string.
Referenced by parse(), and setControl().
|
inline |
Retrieve a table illustrating the structure of the last received acoustic signal’s multipath propagation from its source to the local device.
Referenced by Transports::Evologics::Task::handleBurstMessage(), Transports::Evologics::Task::handleInstantMessage(), and Transports::Evologics::Task::handleMessageDelivered().
|
inline |
Retrieve the last computed acoustic signal propagation time between communicating devices.
Referenced by Transports::Evologics::Task::handleMessageDelivered().
|
inline |
Retrieve the configured sound speed.
|
inline |
References Transports::Evologics::RecvIM::ack, Transports::Evologics::RecvIM::bitrate, Transports::Evologics::RecvIM::data, Transports::Evologics::RecvIM::dst, Transports::Evologics::RecvIM::duration, getFirmwareVersion(), Transports::Evologics::RecvIM::integrity, Transports::Evologics::RecvIM::propagation_time, Transports::Evologics::RecvIM::rssi, Transports::Evologics::RecvIM::src, and Transports::Evologics::RecvIM::velocity.
Referenced by Transports::Evologics::Task::handleInstantMessage().
|
inline |
References Transports::Evologics::RecvIM::bitrate, Transports::Evologics::RecvIM::data, Transports::Evologics::RecvIM::dst, Transports::Evologics::RecvIM::integrity, Transports::Evologics::RecvIM::propagation_time, Transports::Evologics::RecvIM::rssi, Transports::Evologics::RecvIM::src, and Transports::Evologics::RecvIM::velocity.
Referenced by Transports::Evologics::Task::handleBurstMessage().
|
inline |
References Transports::Evologics::RecvUsblAng::accuracy, Transports::Evologics::RecvUsblAng::addr, Transports::Evologics::RecvUsblAng::bearing, Transports::Evologics::RecvUsblAng::ctime, Transports::Evologics::RecvUsblAng::elevation, Transports::Evologics::RecvUsblAng::integrity, Transports::Evologics::RecvUsblAng::lbearing, Transports::Evologics::RecvUsblAng::lelevation, Transports::Evologics::RecvUsblAng::mtime, Transports::Evologics::RecvUsblAng::pitch, Transports::Evologics::RecvUsblAng::roll, Transports::Evologics::RecvUsblAng::rssi, and Transports::Evologics::RecvUsblAng::yaw.
Referenced by Transports::Evologics::Task::handleUsblAngles().
|
inline |
References Transports::Evologics::RecvUsblPos::accuracy, Transports::Evologics::RecvUsblPos::addr, Transports::Evologics::RecvUsblPos::ctime, Transports::Evologics::RecvUsblPos::e, Transports::Evologics::RecvUsblPos::integrity, Transports::Evologics::RecvUsblPos::mtime, Transports::Evologics::RecvUsblPos::n, Transports::Evologics::RecvUsblPos::pitch, Transports::Evologics::RecvUsblPos::propagation_time, Transports::Evologics::RecvUsblPos::roll, Transports::Evologics::RecvUsblPos::rssi, Transports::Evologics::RecvUsblPos::u, Transports::Evologics::RecvUsblPos::x, Transports::Evologics::RecvUsblPos::y, Transports::Evologics::RecvUsblPos::yaw, and Transports::Evologics::RecvUsblPos::z.
Referenced by Transports::Evologics::Task::handleUsblPosition().
|
inline |
Send burst data.
[in] | data | data to send. |
[in] | data_size | number of bytes to send. |
[in] | dst | destination address. |
Referenced by Transports::Evologics::Task::transmitData().
|
inline |
Send instant message.
[in] | data | data to send. |
[in] | data_size | number of bytes to send. |
[in] | dst | destination address. |
[in] | ack | true to wait for acknowledgment, false otherwise. |
Referenced by Transports::Evologics::Task::transmitData().
|
inline |
Send piggyback instant message.
[in] | data | data to send. |
[in] | data_size | number of bytes to send. |
[in] | dst | destination address. |
Referenced by Transports::Evologics::Task::transmitData().
|
inline |
Reset device.
|
inline |
Set modem address.
[in] | addr | address. |
Referenced by Transports::Evologics::Task::onResourceInitialization().
|
inline |
|
inline |
Set control over modem.
References getFirmwareVersion().
Referenced by Transports::Evologics::Task::onResourceInitialization().
|
inline |
Set device's magnetic declination offset.
Referenced by Transports::Evologics::Task::consume().
|
inline |
Referenced by Transports::Evologics::Task::onResourceInitialization().
|
inline |
Set highest address.
[in] | value | highest address. |
Referenced by Transports::Evologics::Task::onResourceInitialization().
|
inline |
Set the timeout before closing an idle acoustic connection.
[in] | value | timeout (s). |
Referenced by Transports::Evologics::Task::onResourceInitialization().
|
inline |
Set low gain mode.
Recommended for short distances or testing purposes.
[in] | low_gain | true to enable low gain, false otherwise. |
Referenced by Transports::Evologics::Task::onResourceInitialization().
|
inline |
Referenced by Transports::Evologics::Task::onResourceInitialization().
|
inline |
Referenced by Transports::Evologics::Task::onResourceInitialization().
|
inline |
Set how many times will the device retry to establish an acoustic connection.
[in] | value | number of retries. |
Referenced by Transports::Evologics::Task::onResourceInitialization().
|
inline |
Set the number of instant message delivery retries.
[in] | value | number of delivery retries. |
Referenced by Transports::Evologics::Task::onResourceInitialization().
|
inline |
Set the time interval that the device waits for a response to its acoustic connection establishment request.
[in] | value | interval (millisecond). |
Referenced by Transports::Evologics::Task::onResourceInitialization().
|
inline |
Set sound speed.
[in] | value | sound speed (m/s). |
|
inline |
Set the sound pressure level (SPL) in transmission mode.
[in] | value | from 3 to 0. |
Referenced by Transports::Evologics::Task::consume(), and Transports::Evologics::Task::onResourceInitialization().
|
inline |
|
inline |