Basic_Frame_TypeC_2023_Omni
Loading...
Searching...
No Matches
can.c File Reference

This file provides code for the configuration of the CAN instances. More...

#include "can.h"

Functions

void MX_CAN1_Init (void)
void MX_CAN2_Init (void)
void HAL_CAN_MspInit (CAN_HandleTypeDef *canHandle)
void HAL_CAN_MspDeInit (CAN_HandleTypeDef *canHandle)
void can_filter_enable (CAN_HandleTypeDef *hcan)
void can_filter_disable (CAN_HandleTypeDef *hcan)

Variables

CAN_HandleTypeDef hcan1
CAN_HandleTypeDef hcan2

Detailed Description

This file provides code for the configuration of the CAN instances.

Attention

Copyright (c) 2023 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.

Function Documentation

◆ HAL_CAN_MspDeInit()

void HAL_CAN_MspDeInit ( CAN_HandleTypeDef * canHandle)

CAN1 GPIO Configuration PD0 ------> CAN1_RX PD1 ------> CAN1_TX

CAN2 GPIO Configuration PB5 ------> CAN2_RX PB6 ------> CAN2_TX

◆ HAL_CAN_MspInit()

void HAL_CAN_MspInit ( CAN_HandleTypeDef * canHandle)

CAN1 GPIO Configuration PD0 ------> CAN1_RX PD1 ------> CAN1_TX

CAN2 GPIO Configuration PB5 ------> CAN2_RX PB6 ------> CAN2_TX