| 数据搜索系统,热门电子元器件搜索 |
|
UM0459 数据表(PDF) 9 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0459 数据表(HTML) 9 Page - STMicroelectronics |
|
9 / 29 page ![]() UM0459 Controller area network (CAN) routines 9/29 2.2.1 CAN_Init function CAN_ReceiveMessage (Section 2.2.16) Gets the message, if received. CAN_BasicSendMessage (Section 2.2.17) Starts transmission of a message in BASIC mode. CAN_BasicReceiveMessage (Section 2.2.18) Gets the message in BASIC mode, if received. CAN_WaitEndOfTx (Section 2.2.19) Waits until the end of transmission of a frame. CAN_GetMsgReceiveStatus (Section 2.2.20) Tests the waiting status of a received message. CAN_GetMsgTransmitRequestStatus (Section 2.2.21) Tests the request status of a transmitted message. CAN_GetMsgInterruptStatus (Section 2.2.22) Tests the interrupt status of a message object. CAN_GetMsgValidStatus (Section 2.2.23) Tests the validity of a message object (ready to use). CAN_GetFlagStatus (Section 2.2.24) Returns the status of the TxOK, RxOK, EPASS, EWARN and BOFF flags. CAN_GetTransmitErrorCounter (Section 2.2.25) Gets the CAN transmit Error counter. CAN_GetReceiveErrorCounter (Section 2.2.26) Gets the CAN receive Error counter. Table 2. CAN functions (continued) Function name (corresponding sections) Description Table 3. CAN_Init function description Function name CAN_Init Function prototype void CAN_Init(CAN_TypeDef* CAN, u16 Mask, u16 Bitrate) Behavior description Initializes the CAN peripheral passed as a parameter. Input parameter 1 CAN: pointer to the CAN1 or CAN2 CAN cell. Input parameter 2 Mask: any binary value resulting from the following (Refer to the CAN control register definition): – CAN_CR_EIE: CAN Error Interrupt Enable – CAn_CR_SIE: CAN Status Interrupt Enable – CAN_CR_IE: CAN Interrupt Enable – CAN_CR_ DAR: CAN Disable Automatic retransmission – CAN_CR_CCE: CAN Configuration Enable – CAN_CR_TEST: Enable CAN test mode Input parameter 3 It can be one of the CAN_BITRATE_xxx parameters given in Table 4: CAN_Bitrate values on page 10 Output parameter None Return parameter 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 |