MG32F157 Standard Peripherals Firmware Library
Data Fields
CAN_InitTypeDef Struct Reference

CAN 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
 

Detailed Description

CAN 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_Time_Quantum_In_Bit_Segment_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.


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