Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
|
#include <CMessageCan.hpp>
Public Member Functions | |
void | getValuesDataMessageAlarm (iv::types::indexChannel *indexChannelOpt, uint8_t *idGroupForLomsOpt, uint8_t *typeAlarmOpt, float *valueAlarmOpt) const |
void | getValuesDataMessageAlarmTimestamp (iv::types::indexChannel *indexChannelOpt, uint16_t *numDaysSince1984Opt, uint32_t *millisecondsOpt) const |
void | getValuesDataMessageTimestamp (uint16_t *numDaysSince1984Opt, uint32_t *numMilliseconds1984Opt) const |
void | getValuesDataMessageAnalogInput (iv::types::unitId *idUnitOpt, iv::types::indexChannel *indexChannelOpt, uint8_t *typeDataOpt, uint32_t *valueOpt) const |
void | getValuesDataMessageText (iv::types::unitId *idUnitOpt, iv::types::indexChannel *indexChannelOpt, std::string *valueStringOpt, uint8_t *segmentPositionOpt, bool *isFirstSegmentOpt, bool *isLastSegmentOpt) const |
void | getValuesDataMessageCommand (iv::types::unitId *idUnitLocalDestOpt, iv::types::indexChannel *indexChannelOpt, uint8_t *commandOpt, uint32_t *valueOpt) const |
void | getValuesDataMessageCommandBool (iv::types::unitId *idUnitLocalDestOpt, iv::types::indexChannel *indexChannelOpt, uint8_t *commandOpt, bool *valueOpt) const |
void | getValuesDataMessageCommandChar (iv::types::unitId *idUnitLocalDestOpt, iv::types::indexChannel *indexChannelOpt, uint8_t *commandOpt, uint8_t *valueOpt) const |
void | getValuesDataMessageGmtSync (iv::types::unitId *idUnitStationOpt, int8_t *offsetGMTOpt, uint32_t *timeUTCOpt) const |
void | getValuesDataMessageHeartbeat (iv::comms::eHeartbeatState *heartbeatStateOpt, uint8_t *heartbeatTypeOpt) const |
void | getValuesDataMessageHistorySync (uint32_t *idStationOpt, iv::types::indexChannel *indexChannelOpt, uint8_t *typeAlarmAndStatusOpt, iv::types::timestamp *timeOpt) const |
CMessageCan ()=default | |
CMessageCan (std::string_view source, uint32_t msgId, const uint8_t bytes_[8], uint32_t timeStamp, uint32_t lengthData, bool isRTR, iv::types::subnetwork idSubnetwork, uint32_t lengthDataExtra, uint8_t **bytesDataExtra, bool isExtended) | |
CMessageCan (const CMessageCan &other)=default | |
CMessageCan (CMessageCan &&other)=default | |
~CMessageCan () override | |
CMessageCan & | operator= (const CMessageCan &other)=delete |
CMessageCan & | operator= (CMessageCan &&other)=delete |
uint64_t | lengthMessage () const |
iv::comms::IMessageComm * | clone () const |
const std::string & | getMessageSource () const |
iv::comms::can::eMessageType | getMessageType () const |
void | getData (uint8_t *bytes_, uint32_t *lengthData) const |
const uint8_t * | getDataExtra (uint32_t *lengthDataExtra) const |
uint32_t | getId () const |
uint32_t | getIdUnit () const |
uint16_t | getIdUnitLocal () const |
uint16_t | getIdSubnetwork () const |
std::shared_ptr< iv::streams::IInputStream > | getInputData () const |
std::shared_ptr< iv::streams::IInputStream > | getInputStream () const |
uint32_t | getLengthData () const |
bool | getRtr () const |
bool | getIsExtended () const |
uint32_t | getTimeStamp () const |
bool | getTextInfo (bool &isInit, bool &isFinish, uint8_t &position) const |
gets text segment msg info | |
bool | isCan () const |
bool | isCommand () const |
bool | isCommandAck () const |
bool | isEqual (const iv::comms::IMessageComm *message) const |
bool | isOkMessage () const |
std::vector< std::byte > | toPcanGatewayPacket () const |
bool | deserialize (const std::vector< std::byte > &buffer) override |
std::vector< std::byte > | serialize () const override |
bool | fromCanFrame (can_frame canFrame) |
std::string | toString () const |
void | getDigitalInputs (std::vector< bool > &inputs, uint32_t numBytes=8) const |
Static Public Member Functions | |
template<typename T > requires std::is_base_of_v<ISerializable, T> | |
static std::vector< std::byte > | serialize (const T &object) |
Public Attributes | |
std::string | m_sourceRef |
iv::comms::can::CanDataMessage * | m_messageDataCan {} |
std::vector< std::byte > | bytes |
|
default |
CMessageCan::CMessageCan | ( | std::string_view | source, |
uint32_t | msgId, | ||
const uint8_t | bytes_[8], | ||
uint32_t | timeStamp, | ||
uint32_t | lengthData, | ||
bool | isRTR, | ||
iv::types::subnetwork | idSubnetwork, | ||
uint32_t | lengthDataExtra, | ||
uint8_t ** | bytesDataExtra, | ||
bool | isExtended ) |
|
default |
|
default |
|
override |
|
nodiscard |
|
overridevirtual |
Implements iv::comms::IMessageComm.
bool CMessageCan::fromCanFrame | ( | can_frame | canFrame | ) |
void CMessageCan::getData | ( | uint8_t * | bytes_, |
uint32_t * | lengthData ) const |
const uint8_t * CMessageCan::getDataExtra | ( | uint32_t * | lengthDataExtra | ) | const |
void CMessageCan::getDigitalInputs | ( | std::vector< bool > & | inputs, |
uint32_t | numBytes = 8 ) const |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
bool CMessageCan::getTextInfo | ( | bool & | isInit, |
bool & | isFinish, | ||
uint8_t & | position ) const |
gets text segment msg info
isInit | reference to set if it's first segment |
isFinish | reference to set if it's final segment |
position | reference to set position of the segment |
|
nodiscard |
void CMessageCan::getValuesDataMessageAlarm | ( | iv::types::indexChannel * | indexChannelOpt, |
uint8_t * | idGroupForLomsOpt, | ||
uint8_t * | typeAlarmOpt, | ||
float * | valueAlarmOpt ) const |
void CMessageCan::getValuesDataMessageAlarmTimestamp | ( | iv::types::indexChannel * | indexChannelOpt, |
uint16_t * | numDaysSince1984Opt, | ||
uint32_t * | millisecondsOpt ) const |
void CMessageCan::getValuesDataMessageAnalogInput | ( | iv::types::unitId * | idUnitOpt, |
iv::types::indexChannel * | indexChannelOpt, | ||
uint8_t * | typeDataOpt, | ||
uint32_t * | valueOpt ) const |
void CMessageCan::getValuesDataMessageCommand | ( | iv::types::unitId * | idUnitLocalDestOpt, |
iv::types::indexChannel * | indexChannelOpt, | ||
uint8_t * | commandOpt, | ||
uint32_t * | valueOpt ) const |
void CMessageCan::getValuesDataMessageCommandBool | ( | iv::types::unitId * | idUnitLocalDestOpt, |
iv::types::indexChannel * | indexChannelOpt, | ||
uint8_t * | commandOpt, | ||
bool * | valueOpt ) const |
void CMessageCan::getValuesDataMessageCommandChar | ( | iv::types::unitId * | idUnitLocalDestOpt, |
iv::types::indexChannel * | indexChannelOpt, | ||
uint8_t * | commandOpt, | ||
uint8_t * | valueOpt ) const |
void CMessageCan::getValuesDataMessageGmtSync | ( | iv::types::unitId * | idUnitStationOpt, |
int8_t * | offsetGMTOpt, | ||
uint32_t * | timeUTCOpt ) const |
void CMessageCan::getValuesDataMessageHeartbeat | ( | iv::comms::eHeartbeatState * | heartbeatStateOpt, |
uint8_t * | heartbeatTypeOpt ) const |
void CMessageCan::getValuesDataMessageHistorySync | ( | uint32_t * | idStationOpt, |
iv::types::indexChannel * | indexChannelOpt, | ||
uint8_t * | typeAlarmAndStatusOpt, | ||
iv::types::timestamp * | timeOpt ) const |
void CMessageCan::getValuesDataMessageText | ( | iv::types::unitId * | idUnitOpt, |
iv::types::indexChannel * | indexChannelOpt, | ||
std::string * | valueStringOpt, | ||
uint8_t * | segmentPositionOpt, | ||
bool * | isFirstSegmentOpt, | ||
bool * | isLastSegmentOpt ) const |
void CMessageCan::getValuesDataMessageTimestamp | ( | uint16_t * | numDaysSince1984Opt, |
uint32_t * | numMilliseconds1984Opt ) const |
|
nodiscard |
|
nodiscard |
|
nodiscard |
bool CMessageCan::isEqual | ( | const iv::comms::IMessageComm * | message | ) | const |
|
nodiscard |
|
nodiscard |
|
delete |
|
delete |
|
inlinenodiscardoverridevirtual |
Implements iv::comms::IMessageComm.
|
inlinestaticinherited |
|
nodiscard |
|
nodiscard |
|
inherited |
iv::comms::can::CanDataMessage* CMessageCan::m_messageDataCan {} |
std::string CMessageCan::m_sourceRef |