|
| | PGN130306 (uint8_t sequenceId, Speed windSpeed, Angle windDirection, HalfByte windReference, HalfByte reserved1=HalfByte::fromValue(0U), Byte reserved2=Byte::fromValue(0U), Byte reserved3=Byte::fromValue(0U)) noexcept |
| |
| | PGN130306 (const PGN130306 &)=default |
| |
| PGN130306 & | operator= (const PGN130306 &)=default |
| |
| | PGN130306 (PGN130306 &&) noexcept=default |
| |
| PGN130306 & | operator= (PGN130306 &&) noexcept=default |
| |
| | ~PGN130306 () override=default |
| |
| std::unique_ptr< nmealib::Message > | clone () const override |
| | Creates a polymorphic deep copy of this Message2000.
|
| |
| uint8_t | getSequenceId () const noexcept |
| |
| Speed | getWindSpeed () const noexcept |
| |
| Angle | getWindDirection () const noexcept |
| |
| HalfByte | getWindReference () const noexcept |
| |
| HalfByte | getReserved1 () const noexcept |
| |
| Byte | getReserved2 () const noexcept |
| |
| Byte | getReserved3 () const noexcept |
| |
| float | getWindDirectionDegrees () const noexcept |
| |
| float | getWindSpeedKnots () const noexcept |
| |
| std::string | getStringContent (bool verbose) const noexcept override |
| | Returns a human-readable string representation of the message.
|
| |
| bool | operator== (const PGN130306 &other) const noexcept |
| |
| virtual bool | operator== (const Message2000 &other) const noexcept |
| |
| | Message2000 (const Message2000 &)=default |
| |
| Message2000 & | operator= (const Message2000 &)=default |
| |
| | Message2000 (Message2000 &&) noexcept=default |
| |
| Message2000 & | operator= (Message2000 &&)=default |
| |
| | ~Message2000 () override=default |
| |
| const std::vector< uint8_t > & | getCanId () const noexcept |
| | Returns the 29-bit CAN identifier as 4 bytes (big-endian).
|
| |
| const std::vector< uint8_t > & | getCanFrame () const noexcept |
| | Returns the raw CAN frame payload (0-223 bytes).
|
| |
| uint8_t | getCanFrameLength () const noexcept |
| | Returns the number of bytes in the CAN frame payload.
|
| |
| uint8_t | getPriority () const noexcept |
| | Returns the 3-bit message priority (0 = highest, 7 = lowest).
|
| |
| bool | getPriority3 () const noexcept |
| | Returns individual priority bits (P3 is the MSB).
|
| |
| bool | getPriority2 () const noexcept |
| | Bit 3 of canId_[0].
|
| |
| bool | getPriority1 () const noexcept |
| | Bit 2 of canId_[0].
|
| |
| bool | getHeaderReserved () const noexcept |
| | Returns the Reserved bit (R1).
|
| |
| bool | getDataPage () const noexcept |
| | Returns the Data Page bit (DP).
|
| |
| uint8_t | getPDUFormat () const noexcept |
| | Returns the PDU Format byte (PF).
|
| |
| uint8_t | getPDUSpecific () const noexcept |
| | Returns the PDU Specific byte (PS).
|
| |
| uint8_t | getSourceAddress () const noexcept |
| | Returns the source address of the transmitting device.
|
| |
| uint8_t | getDestinationAddress () const noexcept |
| | Returns the destination address.
|
| |
| uint32_t | getPgn () const noexcept |
| | Returns the PGN (Parameter Group Number) extracted from the CAN Id.
|
| |
| std::string | serialize () const override |
| | Serializes the message to "CANID:data" hex format.
|
| |
| bool | validate () const override |
| | Returns true if the PGN fits in 18 bits and the frame is 0-223 bytes.
|
| |
| | Message () |
| |
| | Message (std::string raw, Type type=Type::Unknown, TimePoint ts=std::chrono::system_clock::now()) noexcept |
| |
| virtual | ~Message () |
| |
| | Message (const Message &)=default |
| |
| Message & | operator= (const Message &)=default |
| |
| | Message (Message &&) noexcept=default |
| |
| Message & | operator= (Message &&) noexcept=default |
| |
| Type | getType () const noexcept |
| | Returns the message type.
|
| |
| const std::string & | getRawData () const noexcept |
| | Returns the raw, unmodified data string as received.
|
| |
| TimePoint | getTimestamp () const noexcept |
| | Returns the timestamp associated with this message.
|
| |
| bool | operator== (const Message &other) const noexcept |
| | Compares two Message objects for equality based on their content.
|
| |
Strongly-typed class representing PGN 127250 - Wind Data.
PGN 127250 is used to report the wind data, including wind speed, direction, and reference. The message contains the following fields:
- Sequence ID (1 byte): A counter that increments with each new message instance.
- Wind Speed (2 bytes): The wind speed stored in an Speed dataType, in m/s [0, 655.35], resolution 1e-2 m/s.
- Wind Direction (2 bytes): The wind direction stored in an Angle dataType, in radians [0, 2π], resolution 1e-4 rad.
- Wind Reference (3 bits): An enumeration indicating the reference for the wind (0-True (north), 1-Magnetic(north), 2-Apparent, 3-True(boat), 4-True(water), 5/6/7-Error).
- Reserved (21 bits): Used for Alignment and future expansion, should be set to 0.
Definition at line 26 of file PGN130306.h.