PDL for FM4  Version1.2
Peripheral Driverl Library for FM4
stc_can_bitrate Struct Reference

CAN bitrate. More...

#include <can.h>

Data Fields

uint8_t u8TimeSegment1
 Range CAN_BITRATE_TSEG1_MIN to CAN_BITRATE_TSEG1_MAX (see define section) More...
 
uint8_t u8TimeSegment2
 Range CAN_BITRATE_TSEG2_MIN to CAN_BITRATE_TSEG2_MAX (see define section) More...
 
uint8_t u8SyncJumpWidth
 Range CAN_BITRATE_SYNC_JUMP_WIDTH_MIN to CAN_BITRATE_SYNC_JUMP_WIDTH_MAX (see define section) More...
 
uint16_t u16Prescaler
 Range PRESCALER_MIN to CAN_BITRATE_PRESCALER_MAX (see define section, divider for the peripheral clock CLKP2) More...
 
en_can_prescaler_t enCanPrescaler
 CAN PRESCALER setting. See en_can_prescaler_t for details. More...
 

Detailed Description

CAN bitrate.

This structure is used to set the bitrate register. All values are decremented by 1 before writing to the CANn_BTR register (see HW manual for more details).

Definition at line 954 of file can.h.

Field Documentation

en_can_prescaler_t enCanPrescaler

CAN PRESCALER setting. See en_can_prescaler_t for details.

Definition at line 960 of file can.h.

Referenced by Can_Init().

uint16_t u16Prescaler

Range PRESCALER_MIN to CAN_BITRATE_PRESCALER_MAX (see define section, divider for the peripheral clock CLKP2)

Definition at line 959 of file can.h.

Referenced by Can_Init().

uint8_t u8SyncJumpWidth

Range CAN_BITRATE_SYNC_JUMP_WIDTH_MIN to CAN_BITRATE_SYNC_JUMP_WIDTH_MAX (see define section)

Definition at line 958 of file can.h.

Referenced by Can_Init().

uint8_t u8TimeSegment1

Range CAN_BITRATE_TSEG1_MIN to CAN_BITRATE_TSEG1_MAX (see define section)

Definition at line 956 of file can.h.

Referenced by Can_Init().

uint8_t u8TimeSegment2

Range CAN_BITRATE_TSEG2_MIN to CAN_BITRATE_TSEG2_MAX (see define section)

Definition at line 957 of file can.h.

Referenced by Can_Init().


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