The AIDA_tstStatistics structure is used by the AIDA_boGetStatistics
function. It contains several sets of information about transmitted and received AIDA events and user data bytes as
well as (if supported by the corresponding components) information about the average and peak loads.
typedef struct {
AIDA_tstStatisticsSet stStdOp;
AIDA_tstStatisticsSet stEmergOp;
AIDA_tstStatisticsSet stError;
AIDA_tstLoadSet stAvgLoad;
AIDA_tstLoadSet stMaxLoad;
} AIDA_tstStatistics;
Members
-
stStdOp
-
Contains the statistics data for normal operation. The statistics data will be updated automatically by the AIDA library
without intervention of the components.
-
stEmergOp
-
Contains the statistics data for "emergency" operation. The exact meaning depends on the component for which
the data is retrieved, e. g. the CAN component defines single wire CAN as emergency
operation.
If a component sets the corresponding warning flags the information will be updated automatically, otherwise
the component has to update the information themself.
-
stError
-
Contains the statistics data for operations in case of errors. The exact meaning depends on the component for which
the data is retrieved, e. g. the CAN component defines error frames as error operations
but will only count the frames and will not calcluate the bus load in this case.
If a component sets the corresponding
error flags the information will be updated automatically, otherwise the component has to update the information themself.
-
stAvgLoad
-
Contains the average load of the transport media in units of 0.1%. Please note that this information cannot be generated
automatically but must be set up by the corresponding component for which the statistics data is retrieved.
Currently only the Vector CAN component calculates the average load.
-
stMaxLoad
-
Contains the peak load of the transport media in units of 0.1%. Please note that this infomation will only be available
if the component updates the stAvgLoad statistics data.
See Also
AIDA Overview, AIDA Structures And Datatypes, AIDA_tstStatisticsSet, AIDA_tstLoadSet