MG32F157 Standard Peripherals Firmware Library
Data Fields
CANFD_InitTypeDef Struct Reference

CANFD Init structure definition. More...

#include <mg32f157_can.h>

Data Fields

uint8_t CAN_Mode
 
uint8_t CAN_Sample
 
uint8_t AutoRetransmiteCmd
 
uint8_t CAN_Prescaler
 
uint8_t CAN_SJW
 
uint8_t CAN_SEG1
 
uint8_t CAN_SEG2
 
uint16_t FD_ArbitrationPrescaler
 
uint8_t FD_ArbitrationSJW
 
uint8_t FD_ArbitrationSEG1
 
uint8_t FD_ArbitrationSEG2
 
uint8_t FD_DataPrescaler
 
uint8_t FD_DataSJW
 
uint8_t FD_DataSEG1
 
uint8_t FD_DataSEG2
 
uint8_t FD_TransmateDelayCompensationCmd
 
uint8_t FD_TransmateDelayCompensationOffset
 
uint8_t FD_RestrictedOperationCmd
 
uint8_t FD_ISOFrameFormatSection
 
uint8_t FD_ArbitrationTimingSection
 
uint8_t FD_DataTimingSection
 
uint8_t FD_FrameFormat
 

Detailed Description

CANFD Init structure definition.

Field Documentation

◆ AutoRetransmiteCmd

uint8_t AutoRetransmiteCmd

Enable or Disable the auto retransmission. This parameter can be set either to ENABLE or DISABLE.

◆ CAN_Mode

uint8_t CAN_Mode

Specifies the CAN operating mode. This parameter can be a value of CAN_Mode

◆ CAN_Prescaler

uint8_t CAN_Prescaler

Specifies the length of a time quantum. It ranges from 1 to 128.

◆ CAN_Sample

uint8_t CAN_Sample

Specifies the Number of bus level samples. This parameter can be a value of CAN_Sample_Level.

◆ CAN_SEG1

uint8_t CAN_SEG1

Specifies the number of time quanta in Bit Segment 1. This parameter can be a value of CAN_Synchronisation_Jump_Width_1

◆ CAN_SEG2

uint8_t CAN_SEG2

Specifies the number of time quanta in Bit Segment 2. This parameter can be a value of CAN_Time_Quantum_In_Bit_Segment_2

◆ CAN_SJW

uint8_t CAN_SJW

Specifies the maximum number of time quanta the CAN hardware is allowed to lengthen or shorten a bit to perform resynchronization. This parameter can be a value of CAN_Synchronisation_Jump_Width.

◆ FD_ArbitrationPrescaler

uint16_t FD_ArbitrationPrescaler

Specifies the CAN FD arbitration phase length of time quantum. It ranges from 1 to 2048.

◆ FD_ArbitrationSEG1

uint8_t FD_ArbitrationSEG1

Specifies the CAN FD arbitration phase number of time quanta in Bit Segment 1. This parameter can be a value of CANFD_Arbitrations_Time_Quantum_In_Bit_Segment_1

◆ FD_ArbitrationSEG2

uint8_t FD_ArbitrationSEG2

Specifies the CAN FD arbitration phase number of time quanta in Bit Segment 2. This parameter can be a value of CANFD_Arbitrations_Time_Quantum_In_Bit_Segment_2

◆ FD_ArbitrationSJW

uint8_t FD_ArbitrationSJW

Specifies the CAN FD arbitration phase maximum number of time quanta the CAN hardware is allowed to lengthen or shorten a bit to perform resynchronization. This parameter can be a value of CANFD_Arbitrations_Synchronisation_Jump_Width.

◆ FD_ArbitrationTimingSection

uint8_t FD_ArbitrationTimingSection

Specifies Bit Time prescaler in Arbitration phase. This parameter can be a value of CANFD_Arbitration_Timing_Section

◆ FD_DataPrescaler

uint8_t FD_DataPrescaler

Specifies the CAN FD Data phase length of time quantum. It ranges from 1 to 64.

◆ FD_DataSEG1

uint8_t FD_DataSEG1

Specifies the CAN FD Data phase number of time quanta in Bit Segment 1. This parameter can be a value of CANFD_Data_Time_Quantum_In_Bit_Segment_1

◆ FD_DataSEG2

uint8_t FD_DataSEG2

Specifies the CAN FD Data phase number of time quanta in Bit Segment 2. This parameter can be a value of CANFD_Data_Time_Quantum_In_Bit_Segment_2

◆ FD_DataSJW

uint8_t FD_DataSJW

Specifies the CAN FD Data phase maximum number of time quanta the CAN hardware is allowed to lengthen or shorten a bit to perform resynchronization. This parameter can be a value of CANFD_Data_Synchronisation_Jump_Width.

◆ FD_DataTimingSection

uint8_t FD_DataTimingSection

Specifies Bit Time prescaler in Data phase. This parameter can be a value of CANFD_Data_Timing_Section

◆ FD_FrameFormat

uint8_t FD_FrameFormat

Specifies CAN FD frame format. This parameter can be a value of CANFD_Frame_Format

◆ FD_ISOFrameFormatSection

uint8_t FD_ISOFrameFormatSection

Specifies ISO CAN FD frame format selection ISO11898-1 or Bosch. This parameter can be a value of CANFD_ISO_Frame_Format_Section

◆ FD_RestrictedOperationCmd

uint8_t FD_RestrictedOperationCmd

Enable or Disable the restricted operation mode. This parameter can be set either to ENABLE or DISABLE.

◆ FD_TransmateDelayCompensationCmd

uint8_t FD_TransmateDelayCompensationCmd

Enable or Disable the transmate delay compensation. This parameter can be set either to ENABLE or DISABLE.

◆ FD_TransmateDelayCompensationOffset

uint8_t FD_TransmateDelayCompensationOffset

Specifies the CAN FD transmate delay compensation offset. This parameter can be a value of CANFD_Transmate_Delay_Compensation_Offset


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