Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Space_Invaders_Demo neopixels gpio_test_stm32f3_discovery gpio_test_systimer ... more
CAN Operation modes functions
[CAN_Private_Functions]
CAN Operation modes functions. More...
Functions | |
uint8_t | CAN_OperatingModeRequest (CAN_TypeDef *CANx, uint8_t CAN_OperatingMode) |
Selects the CAN Operation mode. | |
uint8_t | CAN_Sleep (CAN_TypeDef *CANx) |
Enters the Sleep (low power) mode. | |
uint8_t | CAN_WakeUp (CAN_TypeDef *CANx) |
Wakes up the CAN peripheral from sleep mode . |
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:
-
status of 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 846 of file stm32f30x_can.c.
uint8_t CAN_Sleep | ( | CAN_TypeDef * | CANx ) |
Enters the Sleep (low power) mode.
- Parameters:
-
CANx,: where x can be 1 to select the CAN1 peripheral.
- Return values:
-
CAN_Sleep_Ok if sleep entered, CAN_Sleep_Failed otherwise.
Definition at line 927 of file stm32f30x_can.c.
uint8_t CAN_WakeUp | ( | CAN_TypeDef * | CANx ) |
Wakes up the CAN peripheral from sleep mode .
- Parameters:
-
CANx,: where x can be 1 to select the CAN1 peripheral.
- Return values:
-
CAN_WakeUp_Ok if sleep mode left, CAN_WakeUp_Failed otherwise.
Definition at line 952 of file stm32f30x_can.c.
Generated on Tue Jul 12 2022 17:34:45 by
