STM32G0 MCAL 0.0.1
Tiny MCAL for educational purpose.
Loading...
Searching...
No Matches
_Can_Controller Struct Reference

CAN Controller More...

#include <Can_Types.h>

Data Fields

uint8 ControllerId
 
uint32 Mode
 
uint32 ClockDivider
 
uint8 FrameFormat
 
uint8 TransmitPause
 
uint8 ProtocolException
 
uint8 AutoRetransmission
 
uint8 TxFifoQueueMode
 
uint32 ActiveITs
 
uint8 CanReference
 
const Can_ControllerBaudrateConfigDefaultBaudrate
 
const Can_ControllerBaudrateConfigBaudrateConfigs
 
uint8 BaudrateConfigsCount
 

Detailed Description

CAN Controller

This container contains the configuration parameters of the CAN controller(s).

Note
the element ID defined by autosar is suppressed due to the fact that the index array it is used as an ID. the default baud rate element is not a pointer but rather an index to the baud rate array

Field Documentation

◆ ActiveITs

uint32 _Can_Controller::ActiveITs

Specifies the interrupts to be enabled on Line0. This parameter can be a value of CAN_IT_<interrupt>

◆ AutoRetransmission

uint8 _Can_Controller::AutoRetransmission

Enable or disable the automatic retransmission mode. This parameter can be set to STD_ON or STD_OFF

◆ BaudrateConfigs

const Can_ControllerBaudrateConfig* _Can_Controller::BaudrateConfigs

This container contains bit timing related configuration parameters

◆ BaudrateConfigsCount

uint8 _Can_Controller::BaudrateConfigsCount

Number of baudrate configurations for the controller

◆ CanReference

uint8 _Can_Controller::CanReference

Base address of the Mcu CAN controller this paramter must be CAN_FDCAN1 or CAN_FDCAN2

◆ ClockDivider

uint32 _Can_Controller::ClockDivider

Specifies the clock divider for the CAN controller This parameter can be a value of CAN Clock Divider

◆ ControllerId

uint8 _Can_Controller::ControllerId

Specifies the ID of a CAN controller. This parameter value is defined in Can_Cfg.h

◆ DefaultBaudrate

const Can_ControllerBaudrateConfig* _Can_Controller::DefaultBaudrate

Reference to baudrate configuration container configured for the Can Controller

◆ FrameFormat

uint8 _Can_Controller::FrameFormat

Specifies the CAN frame format FD or Classic. This parameter can be a value of CAN Frame Format

◆ Mode

uint32 _Can_Controller::Mode

Specifies the CAN peripheral operation mode. This parameter can be a value of CAN Operating Mode

◆ ProtocolException

uint8 _Can_Controller::ProtocolException

Enable or disable the Protocol Exception Handling. This parameter can be set to STD_ON or STD_OFF

◆ TransmitPause

uint8 _Can_Controller::TransmitPause

Enable or disable the Transmit Pause feature. This parameter can be set to STD_ON or STD_OFF

◆ TxFifoQueueMode

uint8 _Can_Controller::TxFifoQueueMode

Tx FIFO/Queue Mode selection. Queue mode is basically multiplexed tx This parameter can be a value of CAN Tx FIFO/Queue Mode


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