Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
|
#include <Nmea0183CommunicationController.hpp>
Public Member Functions | |
Nmea0183CommunicationController (const std::shared_ptr< ICommunicationDriver > &driver, const std::shared_ptr< iv::model::comms::NetworkData > &networkData) | |
Nmea0183CommunicationController (const Nmea0183CommunicationController &other)=delete | |
Nmea0183CommunicationController (Nmea0183CommunicationController &&other)=delete | |
~Nmea0183CommunicationController () override=default | |
Nmea0183CommunicationController & | operator= (const Nmea0183CommunicationController &other)=delete |
Nmea0183CommunicationController & | operator= (const Nmea0183CommunicationController &&other)=delete |
void | pause () const |
void | resume () const |
iv::types::networkId | getNetworkId () const |
std::shared_ptr< iv::model::comms::NetworkData > | getCommConfig () const |
std::shared_ptr< iv::comms::ICommunicationDriver > | getDriver () const |
bool | hasChannel (const iv::types::channelId &channelId) const |
bool | isEnabled () |
Protected Attributes | |
iv::types::networkId | m_networkId |
std::shared_ptr< bool > | m_isEnabled |
std::shared_ptr< iv::model::comms::NetworkData > | m_commConfig |
std::shared_ptr< iv::comms::ICommunicationProtocol > | m_protocol |
std::shared_ptr< iv::comms::ICommunicationDriver > | m_driver |
std::map< iv::types::channelId, std::shared_ptr< iv::channels::AbstractChannel > > | m_channels |
std::weak_ptr< iv::channels::AbstractChannel > | m_errorChannel |
std::weak_ptr< iv::channels::AbstractChannel > | m_heartbeatChannel |
std::weak_ptr< iv::comms::ICommunicationController > | m_fallbackComm |
std::weak_ptr< iv::diamar::AppFailuresLoggerManager > | m_appFailuresLoggerManager |
Private Member Functions | |
void | addChannel (const std::shared_ptr< iv::channels::AbstractChannel > &channel) override |
add channel to the communication and reads to wich header and field it's assigned | |
void | initialize () override |
This function creates the nmea0183 protocol and start the comms thread. | |
bool | frame () override |
This function is called periodically to handle the nmea0183 communication. It reads nmea0183 messages from the protocol and assigns the values of each field to channels if defined. | |
void | processSimpleHeader (const std::shared_ptr< Nmea0183CommunicationProtocol > &protocol, const iv::types::comms::nmea0183::nmeaHeader &channelHeader, const std::vector< NmeaChannelBinding > &channels) |
void | processCompoundHeader (const std::shared_ptr< Nmea0183CommunicationProtocol > &protocol, const iv::types::comms::nmea0183::nmeaHeader &channelHeader, const std::vector< NmeaChannelBinding > &channels) |
Private Attributes | |
std::map< iv::types::comms::nmea0183::nmeaHeader, std::vector< NmeaChannelBinding > > | m_channelBindings |
iv::model::comms::nmea0183::Settings | m_nmeaSettings |
iv::types::timestamp | m_lastFrameTime |
Friends | |
class | Nmea0183CommunicationControllerFrame |
|
explicit |
|
delete |
|
delete |
|
overridedefault |
|
overrideprivatevirtual |
add channel to the communication and reads to wich header and field it's assigned
channel |
Esto solo lo quiere la redundancia. Pq no lo ponemos solo en el controller de redundancia?
Implements iv::comms::ICommunicationController.
|
overrideprivatevirtual |
This function is called periodically to handle the nmea0183 communication. It reads nmea0183 messages from the protocol and assigns the values of each field to channels if defined.
Implements iv::comms::ICommunicationController.
|
inlinenodiscardinherited |
|
inlinenodiscardinherited |
|
inlinenodiscardinherited |
|
inlinenodiscardinherited |
|
overrideprivatevirtual |
This function creates the nmea0183 protocol and start the comms thread.
Implements iv::comms::ICommunicationController.
|
inlinenodiscardinherited |
|
delete |
|
delete |
|
inlineinherited |
|
private |
|
private |
|
inlineinherited |
|
friend |
|
protectedinherited |
|
private |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
private |
|
protectedinherited |
|
private |
|
protectedinherited |