STM32F4 Standard Peripheral bibliotheek  1.0
ST Microelectronics bibliotheek documentatie voor de STM32F4 Standard Peripheral Library
 All Data Structures Files Functions Variables Enumerations Enumerator Groups
CAN Operation modes functions

CAN Operation modes functions. More...

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

Function Documentation

uint8_t CAN_OperatingModeRequest ( CAN_TypeDef *  CANx,
uint8_t  CAN_OperatingMode 
)

Selects the CAN Operation mode.

Parameters
CAN_OperatingMode,:CAN 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
uint8_t CAN_Sleep ( CAN_TypeDef *  CANx)

Enters the Sleep (low power) mode.

Parameters
CANx,:where x can be 1 or 2 to select the CAN peripheral.
Return values
CAN_Sleep_Okif sleep entered, CAN_Sleep_Failed otherwise.
uint8_t CAN_WakeUp ( CAN_TypeDef *  CANx)

Wakes up the CAN peripheral from sleep mode .

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