EasyManuals Logo

ST STM32F31xx User Manual

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
Page #121 background imageLoading...
Page #121 background image
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

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F31xx and is the answer not in the manual?

ST STM32F31xx Specifications

General IconGeneral
BrandST
ModelSTM32F31xx
CategoryMicrocontrollers
LanguageEnglish

Related product manuals