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) 22 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) 22 Page - STMicroelectronics

Back Button UM0459 Datasheet HTML 18Page - STMicroelectronics UM0459 Datasheet HTML 19Page - STMicroelectronics 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 22 / 29 page
background image
Controller area network (CAN) routines
UM0459
22/29
2.2.17
CAN_BasicSendMessage function
Example:
This example illustrates how to send frames.
{
/*Send consecutive data frames using message object 0*/
for (i = 0; i < 10; i++)
{
CAN_SendMessage(CAN1, CanMsgTable[i]);
CAN_WaitEndOfTx();
}
}
Table 21.
CAN_BasicSendMessage function description
Function name
CAN_BasicSendMessage
Prototype
ErrorStatus CAN_BasicSendMessage(CAN_TypeDef* CAN, canmsg*
pCanMsg);
Behavior description
Starts transmission of a message in BASIC mode.
This function performs the following operations:
– Tests if the IF0 is free.
– Writes the Arbitration, Message Control, DataA and DataB registers
of message interface 0, with the message contents.
– Writes the 1+msgobj value to the Command Request register to start
the transmission
This mode does not use the message RAM.
Input parameter 1
CAN: pointer to a CAN1 or CAN2 CAN_TypeDef structure.
Input parameter 2
pCanMsg: pointer to the canmsg structure that contains the data to
transmit: ID type, ID value, data length, data values.
Output parameter
None
Return value
An ErrorStatus enumeration value:
– SUCCESS: Transmission started OK
– ERROR: No transmission
Required preconditions
The CAN must have been switched into BASIC mode.
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