rusEFI
The most advanced open source ECU
Public Member Functions | Data Fields
sent_channel_stat Struct Reference

#include <sent_logic.h>

Collaboration diagram for sent_channel_stat:
Collaboration graph
[legend]

Public Member Functions

uint32_t getTotalError ()
 
float getErrorRate ()
 

Data Fields

uint32_t hwOverflowCnt
 
uint32_t ShortIntervalErr
 
uint32_t LongIntervalErr
 
uint32_t SyncErr
 
uint32_t CrcErrCnt
 
uint32_t FrameCnt
 
uint32_t PauseCnt
 
uint32_t RestartCnt
 
uint32_t sc
 
uint32_t scCrcErr
 

Detailed Description

Definition at line 32 of file sent_logic.h.

Member Function Documentation

◆ getErrorRate()

float sent_channel_stat::getErrorRate ( )
inline

Definition at line 50 of file sent_logic.h.

50  {
51  return 1.0 * getTotalError() / (FrameCnt + getTotalError());
52 }
uint32_t FrameCnt
Definition: sent_logic.h:39
uint32_t getTotalError()
Definition: sent_logic.h:46
Here is the call graph for this function:

◆ getTotalError()

uint32_t sent_channel_stat::getTotalError ( )
inline

Definition at line 46 of file sent_logic.h.

46  {
48 }
uint32_t SyncErr
Definition: sent_logic.h:37
uint32_t ShortIntervalErr
Definition: sent_logic.h:35
uint32_t CrcErrCnt
Definition: sent_logic.h:38
uint32_t LongIntervalErr
Definition: sent_logic.h:36

Referenced by getErrorRate().

Here is the caller graph for this function:

Field Documentation

◆ CrcErrCnt

uint32_t sent_channel_stat::CrcErrCnt

◆ FrameCnt

uint32_t sent_channel_stat::FrameCnt

◆ hwOverflowCnt

uint32_t sent_channel_stat::hwOverflowCnt

Definition at line 33 of file sent_logic.h.

Referenced by sent_channel::Decoder(), and sent_channel::Info().

◆ LongIntervalErr

uint32_t sent_channel_stat::LongIntervalErr

◆ PauseCnt

uint32_t sent_channel_stat::PauseCnt

◆ RestartCnt

uint32_t sent_channel_stat::RestartCnt

Definition at line 41 of file sent_logic.h.

Referenced by sent_channel::Info(), and sent_channel::restart().

◆ sc

uint32_t sent_channel_stat::sc

◆ scCrcErr

uint32_t sent_channel_stat::scCrcErr

◆ ShortIntervalErr

uint32_t sent_channel_stat::ShortIntervalErr

◆ SyncErr

uint32_t sent_channel_stat::SyncErr

The documentation for this struct was generated from the following file: