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
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
|
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_Ok | if 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_Ok | if sleep mode left, CAN_WakeUp_Failed otherwise. |