MG32F157 Standard Peripherals Firmware Library
|
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 |
CAN Init structure definition.
uint8_t AutoRetransmiteCmd |
Enable or Disable the auto retransmission. This parameter can be set either to ENABLE or DISABLE.
uint8_t CAN_Mode |
Specifies the CAN operating mode. This parameter can be a value of CAN_Mode
uint8_t CAN_Prescaler |
Specifies the length of a time quantum. It ranges from 1 to 128.
uint8_t CAN_Sample |
Specifies the Number of bus level samples. This parameter can be a value of CAN_Sample_Level.
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
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
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.