4.A3 can_device_stats

CAN device statistics structure

Structure Definition

typedef struct can_device_stats {

unsigned int txerr;   
unsigned int rxerr;  
unsigned int txpackets; 
unsigned int rxpackets; 
unsigned int rx_over_errors; 
unsigned int error_active; 
unsigned int stat_change; 
unsigned int bit_error;
unsigned int stuff_error;
unsigned int form_error; 
unsigned int bus_error;       
unsigned int bus_error_enable;
unsigned int error_warning;   
unsigned int error_passive;   
unsigned int bus_off;         
unsigned int arbitration_lost;
unsigned int arbitration_lost_enable;
	
}can_device_stats;

Structure Members

Name

Description

txerr

Transmit errors

rxerr

Receive errors

txpackets

Tx transmitted count

rxpackets

Rx transmitted count

rx_over_errors

Rx over error count

error_active

Error active enable

stat_change

stat changed from passive to active ,vice versa

bit_error

bit error

stuff_error

stuff error

form_error

Form error

bus_error

Bus errors

bus_error_enable

bit error enable

error_warning

Changes to error warning state

error_passive

Changes to error passive state

bus_off

Changes to bus off state

arbitration_lost

Arbitration lost errors

arbitration_lost_enable

arbitration lost error enable

Last updated