Functions

CAN Operation modes functions. More...

Collaboration diagram for CAN Operation modes functions:

Functions

uint8_t CAN_OperatingModeRequest (CAN_TypeDef *CANx, uint8_t CAN_OperatingMode)
 Selects the CAN Operation mode. More...
 
uint8_t CAN_Sleep (CAN_TypeDef *CANx)
 Enters the Sleep (low power) mode. More...
 
uint8_t CAN_WakeUp (CAN_TypeDef *CANx)
 Wakes up the CAN peripheral from sleep mode . More...
 

Detailed Description

CAN Operation modes functions.

 ===============================================================================
                    ##### CAN Operation modes functions #####
 ===============================================================================  
    [..] This section provides functions allowing to select the CAN Operation modes
      (+) sleep mode
      (+) normal mode 
      (+) initialization mode
 ===============================================================================
                    ##### CAN Operation modes functions #####
 ===============================================================================  
    [..] This section provides functions allowing to select the CAN Operation modes:
         (+) sleep mode.
         (+) normal mode. 
         (+) initialization mode.

Function Documentation

uint8_t CAN_OperatingModeRequest ( CAN_TypeDef CANx,
uint8_t  CAN_OperatingMode 
)

Selects the CAN Operation mode.

Parameters
CAN_OperatingModeCAN Operating Mode. This parameter can be one of CAN_OperatingMode_TypeDef enumeration.
Return values
statusof the requested mode which can be
  • CAN_ModeStatus_Failed: CAN failed entering the specific mode
  • CAN_ModeStatus_Success: CAN Succeed entering the specific mode
Parameters
CAN_OperatingModeCAN Operating Mode. This parameter can be one of CAN_OperatingMode_TypeDef enumeration.
Return values
statusof the requested mode which can be:
  • CAN_ModeStatus_Failed: CAN failed entering the specific mode
  • CAN_ModeStatus_Success: CAN Succeed entering the specific mode

Definition at line 872 of file stm32f4xx_can.c.

uint8_t CAN_Sleep ( CAN_TypeDef CANx)

Enters the Sleep (low power) mode.

Parameters
CANxwhere x can be 1 or 2 to select the CAN peripheral.
Return values
CAN_Sleep_Okif sleep entered, CAN_Sleep_Failed otherwise.
Parameters
CANxwhere x can be 1 to select the CAN1 peripheral.
Return values
CAN_Sleep_Okif sleep entered, CAN_Sleep_Failed otherwise.

Definition at line 953 of file stm32f4xx_can.c.

uint8_t CAN_WakeUp ( CAN_TypeDef CANx)

Wakes up the CAN peripheral from sleep mode .

Parameters
CANxwhere x can be 1 or 2 to select the CAN peripheral.
Return values
CAN_WakeUp_Okif sleep mode left, CAN_WakeUp_Failed otherwise.
Parameters
CANxwhere x can be 1 to select the CAN1 peripheral.
Return values
CAN_WakeUp_Okif sleep mode left, CAN_WakeUp_Failed otherwise.

Definition at line 978 of file stm32f4xx_can.c.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 19:59:29