A storage object to keep track of session information internally.
More...
#include <can_extended_transport_protocol.hpp>
|
StateMachineState | get_state () const |
| < Inherit the base constructor
|
|
std::uint32_t | get_total_bytes_transferred () const override |
| Get the number of bytes that have been sent or received in this session.
|
|
| TransportProtocolSessionBase (TransportProtocolSessionBase::Direction direction, std::unique_ptr< CANMessageData > data, std::uint32_t parameterGroupNumber, std::uint32_t totalMessageSize, std::shared_ptr< ControlFunction > source, std::shared_ptr< ControlFunction > destination, TransmitCompleteCallback sessionCompleteCallback, void *parentPointer) |
| The constructor for a session.
|
|
| TransportProtocolSessionBase (TransportProtocolSessionBase &&other)=default |
| The move constructor.
|
|
| TransportProtocolSessionBase (TransportProtocolSessionBase::Direction direction, std::unique_ptr< CANMessageData > data, std::uint32_t parameterGroupNumber, std::uint32_t totalMessageSize, std::shared_ptr< ControlFunction > source, std::shared_ptr< ControlFunction > destination, TransmitCompleteCallback sessionCompleteCallback, void *parentPointer) |
| The constructor for a session.
|
|
| TransportProtocolSessionBase (TransportProtocolSessionBase &&other)=default |
| The move constructor.
|
|
TransportProtocolSessionBase & | operator= (TransportProtocolSessionBase &&other)=default |
| The move assignment operator.
|
|
virtual | ~TransportProtocolSessionBase ()=default |
| The destructor for a session.
|
|
Direction | get_direction () const |
| Get the direction of the session.
|
|
bool | operator== (const TransportProtocolSessionBase &obj) const |
| A useful way to compare session objects to each other for equality,.
|
|
bool | matches (std::shared_ptr< ControlFunction > other_source, std::shared_ptr< ControlFunction > other_destination) const |
| Checks if the source and destination control functions match the given control functions.
|
|
CANMessageData & | get_data () const |
| Get the data buffer for the session.
|
|
std::uint32_t | get_message_length () const |
| Get the total number of bytes that will be sent or received in this session.
|
|
float | get_percentage_bytes_transferred () const |
| Get the percentage of bytes that have been sent or received in this session.
|
|
std::shared_ptr< ControlFunction > | get_source () const |
| Get the control function that is sending the message.
|
|
std::shared_ptr< ControlFunction > | get_destination () const |
| Get the control function that is receiving the message.
|
|
std::uint32_t | get_parameter_group_number () const |
| Get the parameter group number of the message.
|
|
A storage object to keep track of session information internally.
Definition at line 64 of file can_extended_transport_protocol.hpp.
◆ get_cts_number_of_packet_limit()
std::uint8_t isobus::ExtendedTransportProtocolManager::ExtendedTransportProtocolSession::get_cts_number_of_packet_limit |
( |
| ) |
const |
|
protected |
Get the maximum number of packets that can be sent per DPO as indicated by the CTS message.
- Returns
- The maximum number of packets that can be sent per DPO as indicated by the CTS message
Definition at line 63 of file can_extended_transport_protocol.cpp.
◆ get_dpo_number_of_packets()
std::uint8_t isobus::ExtendedTransportProtocolManager::ExtendedTransportProtocolSession::get_dpo_number_of_packets |
( |
| ) |
const |
|
protected |
Get the number of packets that will be sent with the current DPO.
- Returns
- The number of packets that will be sent with the current DPO
Definition at line 58 of file can_extended_transport_protocol.cpp.
◆ get_dpo_number_of_packets_remaining()
std::uint8_t isobus::ExtendedTransportProtocolManager::ExtendedTransportProtocolSession::get_dpo_number_of_packets_remaining |
( |
| ) |
const |
|
protected |
Get the number of packets to be sent with the current DPO.
- Returns
- The number of packets to be sent with the current DPO
Definition at line 46 of file can_extended_transport_protocol.cpp.
◆ get_last_acknowledged_packet_number()
std::uint32_t isobus::ExtendedTransportProtocolManager::ExtendedTransportProtocolSession::get_last_acknowledged_packet_number |
( |
| ) |
const |
|
protected |
◆ get_last_packet_number()
std::uint32_t isobus::ExtendedTransportProtocolManager::ExtendedTransportProtocolSession::get_last_packet_number |
( |
| ) |
const |
|
protected |
◆ get_last_sequence_number()
std::uint8_t isobus::ExtendedTransportProtocolManager::ExtendedTransportProtocolSession::get_last_sequence_number |
( |
| ) |
const |
|
protected |
◆ get_number_of_remaining_packets()
std::uint32_t isobus::ExtendedTransportProtocolManager::ExtendedTransportProtocolSession::get_number_of_remaining_packets |
( |
| ) |
const |
|
protected |
Get the number of packets that remain to be sent or received in this session.
- Returns
- The number of packets that remain to be sent or received in this session
Definition at line 107 of file can_extended_transport_protocol.cpp.
◆ get_state()
◆ get_total_bytes_transferred()
std::uint32_t isobus::ExtendedTransportProtocolManager::ExtendedTransportProtocolSession::get_total_bytes_transferred |
( |
| ) |
const |
|
overridevirtual |
◆ get_total_number_of_packets()
std::uint32_t isobus::ExtendedTransportProtocolManager::ExtendedTransportProtocolSession::get_total_number_of_packets |
( |
| ) |
const |
|
protected |
Get the total number of packets that will be sent or received in this session.
- Returns
- The total number of packets that will be sent or received in this session
Definition at line 112 of file can_extended_transport_protocol.cpp.
◆ set_acknowledged_packet_number()
void isobus::ExtendedTransportProtocolManager::ExtendedTransportProtocolSession::set_acknowledged_packet_number |
( |
std::uint32_t | value | ) |
|
|
protected |
Set the last acknowledged packet number by the receiver.
- Parameters
-
[in] | value | The last acknowledged packet number by the receiver |
Definition at line 96 of file can_extended_transport_protocol.cpp.
◆ set_cts_number_of_packet_limit()
void isobus::ExtendedTransportProtocolManager::ExtendedTransportProtocolSession::set_cts_number_of_packet_limit |
( |
std::uint8_t | value | ) |
|
|
protected |
Set the maximum number of packets that can be sent per DPO as indicated by the CTS message.
- Parameters
-
value | The maximum number of packets that can be sent per DPO as indicated by the CTS message |
Definition at line 68 of file can_extended_transport_protocol.cpp.
◆ set_dpo_number_of_packets()
void isobus::ExtendedTransportProtocolManager::ExtendedTransportProtocolSession::set_dpo_number_of_packets |
( |
std::uint8_t | value | ) |
|
|
protected |
Set the number of packets to be sent with the current DPO.
- Parameters
-
[in] | value | The number of packets to be sent with the current DPO |
Definition at line 52 of file can_extended_transport_protocol.cpp.
◆ set_last_sequency_number()
void isobus::ExtendedTransportProtocolManager::ExtendedTransportProtocolSession::set_last_sequency_number |
( |
std::uint8_t | value | ) |
|
|
protected |
Set the last sequence number that has be processed.
- Parameters
-
[in] | value | The last sequence number that has be processed |
Definition at line 90 of file can_extended_transport_protocol.cpp.
◆ set_sequence_number_offset()
void isobus::ExtendedTransportProtocolManager::ExtendedTransportProtocolSession::set_sequence_number_offset |
( |
std::uint32_t | value | ) |
|
|
protected |
◆ set_state()
void isobus::ExtendedTransportProtocolManager::ExtendedTransportProtocolSession::set_state |
( |
StateMachineState | value | ) |
|
|
protected |
◆ TransportProtocolSessionBase() [1/2]
The move constructor.
- Parameters
-
[in] | other | The object to move |
◆ TransportProtocolSessionBase() [2/2]
The constructor for a session.
- Parameters
-
[in] | direction | The direction of the session |
[in] | data | Data buffer (will be moved into the session) |
[in] | parameterGroupNumber | The PGN of the message |
[in] | totalMessageSize | The total size of the message in bytes |
[in] | source | The source control function |
[in] | destination | The destination control function |
[in] | sessionCompleteCallback | A callback for when the session completes |
[in] | parentPointer | A generic context object for the tx complete and chunk callbacks |
Definition at line 39 of file can_transport_protocol_base.cpp.
◆ ExtendedTransportProtocolManager
◆ clearToSendPacketCountLimit
std::uint8_t isobus::ExtendedTransportProtocolManager::ExtendedTransportProtocolSession::clearToSendPacketCountLimit = 0xFF |
|
private |
◆ dataPacketOffsetPacketCount
std::uint8_t isobus::ExtendedTransportProtocolManager::ExtendedTransportProtocolSession::dataPacketOffsetPacketCount = 0 |
|
private |
◆ lastAcknowledgedPacketNumber
std::uint32_t isobus::ExtendedTransportProtocolManager::ExtendedTransportProtocolSession::lastAcknowledgedPacketNumber = 0 |
|
private |
◆ lastSequenceNumber
std::uint8_t isobus::ExtendedTransportProtocolManager::ExtendedTransportProtocolSession::lastSequenceNumber = 0 |
|
private |
◆ sequenceNumberOffset
std::uint32_t isobus::ExtendedTransportProtocolManager::ExtendedTransportProtocolSession::sequenceNumberOffset = 0 |
|
private |
◆ state
The documentation for this class was generated from the following files: