| Moteur de recherche de fiches techniques de composants électroniques |
|
UM0459 Fiches technique(PDF) 13 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0459 Fiches technique(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 |
|
Lien URL |
| ALLDATASHEET vous a-t-il été utile ? [ DONATE ] |
À propos de Alldatasheet | Publicité | Contactez-nous | Politique de confidentialité | Lien vers la fiche technique | Echange de liens | Fabricants 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 |