TUKS MCU Introductory course / TUKS-COURSE-THERMOMETER

Fork of TUKS-COURSE-TIMER by TUKS MCU Introductory course

Embed: (wiki syntax)

« Back to documentation index

Peripheral State and Error functions

Peripheral State and Error functions
[CAN Exported Functions]

CAN Peripheral State functions. More...

Functions

HAL_CAN_StateTypeDef HAL_CAN_GetState (CAN_HandleTypeDef *hcan)
 Return the CAN handle state.
uint32_t HAL_CAN_GetError (CAN_HandleTypeDef *hcan)
 Return the CAN error code.

Detailed Description

CAN Peripheral State functions.

  ==============================================================================
            ##### Peripheral State and Error functions #####
  ==============================================================================
    [..]
    This subsection provides functions allowing to :
      (+) Check the CAN state.
      (+) Check CAN Errors detected during interrupt process.
         

Function Documentation

uint32_t HAL_CAN_GetError ( CAN_HandleTypeDef *  hcan )

Return the CAN error code.

Parameters:
hcan,:pointer to a CAN_HandleTypeDef structure that contains the configuration information for the specified CAN.
Return values:
CANError Code

Definition at line 1248 of file stm32l4xx_hal_can.c.

HAL_CAN_StateTypeDef HAL_CAN_GetState ( CAN_HandleTypeDef *  hcan )

Return the CAN handle state.

Parameters:
hcan,:pointer to a CAN_HandleTypeDef structure that contains the configuration information for the specified CAN.
Return values:
HALstate

Definition at line 1236 of file stm32l4xx_hal_can.c.