HPM SDK
HPMicro Software Development Kit
mcan_protocol_status Struct Reference

MCAN Protocol Status. More...

#include <hpm_mcan_drv.h>

Data Fields

uint8_t tdc_val
 
mcan_activity_state_t activity
 
mcan_last_err_code_t last_error_code
 
bool protocol_exception_evt_occurred
 
bool canfd_msg_received
 
bool brs_flag_set_in_last_rcv_canfd_msg
 
bool esi_flag_set_in_last_rcv_canfd_msg
 
bool in_bus_off_state
 
bool in_warning_state
 
bool in_error_passive_state
 

Detailed Description

MCAN Protocol Status.

Field Documentation

◆ activity

mcan_activity_state_t mcan_protocol_status::activity

Current communication state

◆ brs_flag_set_in_last_rcv_canfd_msg

bool mcan_protocol_status::brs_flag_set_in_last_rcv_canfd_msg

Bitrate Switch bit is set in last received CANFD message

◆ canfd_msg_received

bool mcan_protocol_status::canfd_msg_received

CANFD message was received

◆ esi_flag_set_in_last_rcv_canfd_msg

bool mcan_protocol_status::esi_flag_set_in_last_rcv_canfd_msg

Error State Indicator bit is set in last received CANFD message

◆ in_bus_off_state

bool mcan_protocol_status::in_bus_off_state

Node is in bus-off state

◆ in_error_passive_state

bool mcan_protocol_status::in_error_passive_state

Node is in error passive state

◆ in_warning_state

bool mcan_protocol_status::in_warning_state

Node is in warning state

◆ last_error_code

mcan_last_err_code_t mcan_protocol_status::last_error_code

Last Error code

◆ protocol_exception_evt_occurred

bool mcan_protocol_status::protocol_exception_evt_occurred

Protocol Exception Event occurred

◆ tdc_val

uint8_t mcan_protocol_status::tdc_val

Transmitter Delay Compensation Value


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