EasyManua.ls Logo

ST STM32F31xx

ST STM32F31xx
584 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
UM1581
Controller area network (bxCAN)
DocID023800 Rev 1
121/584
4.2.11.2 CAN_Sleep
Function Name
uint8_t CAN_Sleep ( CAN_TypeDef * CANx)
Function Description
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.
Notes
None.
4.2.11.3 CAN_WakeUp
Function Name
uint8_t CAN_WakeUp ( CAN_TypeDef * CANx)
Function Description
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.
Notes
None.
4.2.12 CAN Bus Error management functions
4.2.12.1 CAN_GetLastErrorCode
Function Name
uint8_t CAN_GetLastErrorCode ( CAN_TypeDef * CANx)
Function Description
Returns the CANx's last error code (LEC).
Parameters
CANx : where x can be 1 to select the CAN1 peripheral.
Return values
Error code:
CAN_ERRORCODE_NoErr: No Error

Table of Contents

Related product manuals