công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

UM0459 bảng dữ liệu(PDF) 24 Page - STMicroelectronics

tên linh kiện UM0459
Giải thích chi tiết về linh kiện  ST10F27xZx CAN library
PDF  29 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  STMICROELECTRONICS [STMicroelectronics]
Trang chủ  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UM0459 bảng dữ liệu(HTML) 24 Page - STMicroelectronics

Back Button UM0459 Datasheet HTML 20Page - STMicroelectronics UM0459 Datasheet HTML 21Page - STMicroelectronics UM0459 Datasheet HTML 22Page - STMicroelectronics UM0459 Datasheet HTML 23Page - STMicroelectronics UM0459 Datasheet HTML 24Page - STMicroelectronics UM0459 Datasheet HTML 25Page - STMicroelectronics UM0459 Datasheet HTML 26Page - STMicroelectronics UM0459 Datasheet HTML 27Page - STMicroelectronics UM0459 Datasheet HTML 28Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 24 / 29 page
background image
Controller area network (CAN) routines
UM0459
24/29
2.2.19
CAN_WaitEndOfTx function
2.2.20
CAN_GetMsgReceiveStatus
Example:
This example illustrates how to test the new data registers for the message object 0.
{
/*Test if a message is pending in the receive message object 0*/
if (CAN_GetMsgReceiveStatus(CAN1, 0))
{
/* Receive the message from this message object (i.e. get its data from message
RAM)*/
}
}
Table 23.
CAN_WaitEndOfTx function description
Function name
CAN_WaitEndOfTx
Function prototype
void CAN_WaitEndOfTx(CAN_TypeDef* CAN);
Behavior description
Waits until current transmission is finished.
This function should be called between two consecutive transmissions
to ensure the latest frame has been completely transmitted on the bus,
and therefore cannot be aborted anymore. A timeout should be added to
avoid the infinite state if an error occurs.
Input parameter
Pointer to a CAN1 or CAN2 CAN structure.
Output parameter
None
Return value
None
Required preconditions
A message must have been sent before.
Called functions
None
Table 24.
CAN_GetMsgReceiveStatus function description
Function name
CAN_GetMsgReceiveStatus
Prototype
FlagStatus CAN_GetMsgReceiveStatus(CAN_TypeDef* CAN, u16
msgobj);
Behavior description
Tests the waiting status of a received message by reading the
corresponding bit in the NewData 1 or 2 registers.
Input parameter 1
CAN: pointer to a CAN1 or CAN2 CAN_TypeDef structure.
Input parameter 2
msgobj: message object number, from 0 to 31.
Output parameter
None
Return value
1 if the corresponding message object has received a message
awaiting to be copied, else 0.
Required preconditions
The corresponding message object must have been set as RX.
Called functions
None



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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