AgIsoStack++
A control-function-focused implementation of the major ISOBUS and J1939 protocols
Loading...
Searching...
No Matches
can_network_configuration.cpp
Go to the documentation of this file.
1//================================================================================================
8//================================================================================================
9
11
12namespace isobus
13{
18
23
25 {
26 constexpr std::uint32_t MAX_BAM_FRAME_DELAY_MS = 200;
27 constexpr std::uint32_t MIN_BAM_FRAME_DELAY_MS = 10;
28
29 if ((value <= MAX_BAM_FRAME_DELAY_MS) &&
30 (value >= MIN_BAM_FRAME_DELAY_MS))
31 {
33 }
34 }
35
40
42 {
43 numberOfPacketsPerDPOMessage = numberFrames;
44 }
45
50
55
60
62 {
63 numberOfPacketsPerCTSMessage = numberFrames;
64 }
65
70}
This is a class for changing stack settings.
void set_max_number_of_network_manager_protocol_frames_per_update(std::uint8_t numberFrames)
Sets the max number of data frames the stack will send from each transport layer protocol,...
void set_number_of_packets_per_dpo_message(std::uint8_t numberFrames)
Sets the max number of data frames the stack will use when in an ETP session, between EDPO phases....
std::uint8_t numberOfPacketsPerCTSMessage
The number of packets per CTS message for TP sessions.
void set_number_of_packets_per_cts_message(std::uint8_t numberPackets)
Set the the number of packets per CTS message for TP sessions. The default is 16. Note that the recei...
std::uint8_t numberOfPacketsPerDPOMessage
The number of packets per DPO message for ETP sessions.
std::uint8_t get_max_number_of_network_manager_protocol_frames_per_update() const
Returns the max number of data frames the stack will send from each transport layer protocol,...
std::uint8_t get_number_of_packets_per_cts_message() const
Get the the number of packets per CTS packet for TP sessions.
std::uint32_t get_max_number_transport_protocol_sessions() const
Returns the max number of concurrent TP sessions.
std::uint32_t maxNumberTransportProtocolSessions
The max number of TP sessions allowed.
std::uint32_t get_minimum_time_between_transport_protocol_bam_frames() const
Returns the minimum time to wait between sending BAM frames.
void set_max_number_transport_protocol_sessions(std::uint32_t value)
Configures the max number of concurrent TP sessions to provide a RAM limit for TP sessions.
void set_minimum_time_between_transport_protocol_bam_frames(std::uint32_t value)
Sets the minimum time to wait between sending BAM frames (default is 50 ms for maximum J1939 compatib...
std::uint8_t networkManagerMaxFramesToSendPerUpdate
Used to control the max number of transport layer frames added to the driver queue per network manage...
std::uint8_t get_number_of_packets_per_dpo_message() const
Returns the max number of data frames the stack will use when in an ETP session, between EDPO phases....
std::uint32_t minimumTimeBetweenTransportProtocolBAMFrames
The configurable time between BAM frames.
This namespace encompasses all of the ISO11783 stack's functionality to reduce global namespace pollu...