| 数据搜索系统,热门电子元器件搜索 |
|
UM0459 数据表(PDF) 13 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0459 数据表(HTML) 13 Page - STMicroelectronics |
|
13 / 29 page ![]() UM0459 Controller area network (CAN) routines 13/29 2.2.5 CAN_LeaveTestMode function Example: { CAN_LeaveTestMode(CAN2); } 2.2.6 CAN_SetBitrate function Bitrate The CAN bitrate values are given in Table 4: CAN_Bitrate values on page 10. Table 9. CAN_LeaveTestMode function description Function name CAN_LeaveTestMode Prototype void CAN_LeaveTestMode(CAN_TypeDef* CAN) Behavior description Leaves the current test mode (switches into normal mode). This function sets the TEST bit in the Control register to enable write access to the Test register, clears the LBACK, SILENT and BASIC bits in the Test register and clears the TEST bit in the Control register to disable write access to the Test register. This function must be used in conjunction with CAN_EnterTestMode(). Input parameter CAN: pointer to the CAN1 or CAN2 CAN cell. Output parameter None Return value None Required preconditions None Called functions None Table 10. CAN_SetBitrate function description Function name CAN_SetBitrate Prototype void CAN_SetBitrate(CAN_TypeDef* CAN, u16 bitrate); Behavior description Sets up a standard CAN bitrate. This function writes the predefined timing value in the Bit Timing register and clears the BRPR register. Input parameter1 CAN: pointer to the CAN1 or CAN2 CAN cell. Input parameter2 BitRate: specifies the bitrate. Refer to the Bitrate on page 13 section for more details on the authorized values of this parameter. Output parameter None Return value None Required preconditions CAN_EnterInitMode() must have been called before. The ST10 frequency = 40 MHz and the prescaler 1/2 is activated at the CAN clock generator input. See also Section 2.2.7: CAN_SetTiming function on page 14 Called Functions None |
|
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |