|
Goby3 3.3.0
2025.07.10
|
provides an API to the goby-acomms MAC library. MACManager is essentially a std::list<protobuf::ModemTransmission> plus a timer. More...
#include <goby/acomms/amac.h>
Public Member Functions | |
Constructors/Destructor | |
| MACManager () | |
| Default constructor. | |
| MACManager (int id) | |
| ~MACManager () | |
Control | |
| void | startup (const protobuf::MACConfig &cfg) |
| Starts the MAC with given configuration. | |
| void | restart () |
| Restarts the MAC with original configuration. | |
| void | shutdown () |
| Shutdown the MAC. | |
| void | do_work () |
| Allows the MAC timer to do its work. Does not block. | |
| void | update () |
| You must call this after any change to the underlying list that would invalidate iterators or change the size (insert, push_back, erase, etc.). | |
| bool | running () |
Modem Signals | |
| boost::signals2::signal< void(const protobuf::ModemTransmission &m)> | signal_initiate_transmission |
| Signals when it is time for this platform to begin transmission of an acoustic message at the start of its TDMA slot. Typically connected to ModemDriverBase::handle_initiate_transmission() using bind(). | |
| boost::signals2::signal< void(const protobuf::ModemTransmission &m)> | signal_slot_start |
| Signals the start of all transmissions (even when we don't transmit) | |
| unsigned | cycle_count () |
| time::SystemClock::duration | cycle_duration () |
| const std::string & | glog_mac_group () const |
provides an API to the goby-acomms MAC library. MACManager is essentially a std::list<protobuf::ModemTransmission> plus a timer.
Definition at line 50 of file mac_manager.h.
| goby::acomms::MACManager::MACManager | ( | ) |
Default constructor.
| goby::acomms::MACManager::MACManager | ( | int | id | ) |
| goby::acomms::MACManager::~MACManager | ( | ) |
|
inline |
Definition at line 101 of file mac_manager.h.
| time::SystemClock::duration goby::acomms::MACManager::cycle_duration | ( | ) |
| void goby::acomms::MACManager::do_work | ( | ) |
Allows the MAC timer to do its work. Does not block.
|
inline |
Definition at line 104 of file mac_manager.h.
| void goby::acomms::MACManager::restart | ( | ) |
Restarts the MAC with original configuration.
|
inline |
Definition at line 81 of file mac_manager.h.
| void goby::acomms::MACManager::shutdown | ( | ) |
Shutdown the MAC.
| void goby::acomms::MACManager::startup | ( | const protobuf::MACConfig & | cfg | ) |
Starts the MAC with given configuration.
| cfg | Initial configuration values (protobuf::MACConfig defined in acomms_amac.proto) |
| void goby::acomms::MACManager::update | ( | ) |
You must call this after any change to the underlying list that would invalidate iterators or change the size (insert, push_back, erase, etc.).
| boost::signals2::signal<void(const protobuf::ModemTransmission& m)> goby::acomms::MACManager::signal_initiate_transmission |
Signals when it is time for this platform to begin transmission of an acoustic message at the start of its TDMA slot. Typically connected to ModemDriverBase::handle_initiate_transmission() using bind().
"m": a message containing details of the transmission to be initated. (protobuf::ModemMsgBase defined in acomms_modem_message.proto)
Definition at line 91 of file mac_manager.h.
| boost::signals2::signal<void(const protobuf::ModemTransmission& m)> goby::acomms::MACManager::signal_slot_start |
Signals the start of all transmissions (even when we don't transmit)
"m": a message containing details of the transmission to be initated. (protobuf::ModemMsgBase defined in acomms_modem_message.proto)
Definition at line 97 of file mac_manager.h.