CAN Operation modes functions.
More...
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.
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
|
- 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 872 of file stm32f4xx_can.c.
Enters the Sleep (low power) mode.
- Parameters
-
CANx | where x can be 1 or 2 to select the CAN peripheral. |
- Return values
-
CAN_Sleep_Ok | if sleep entered, CAN_Sleep_Failed otherwise. |
- 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 953 of file stm32f4xx_can.c.
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_Ok | if sleep mode left, CAN_WakeUp_Failed otherwise. |
- 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 978 of file stm32f4xx_can.c.