поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

UM0459 датащи(PDF) 20 Page - STMicroelectronics

номер детали UM0459
подробное описание детали  ST10F27xZx CAN library
PDF  29 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  STMICROELECTRONICS [STMicroelectronics]
домашняя страница  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UM0459 датащи(HTML) 20 Page - STMicroelectronics

Back Button UM0459 Datasheet HTML 16Page - STMicroelectronics UM0459 Datasheet HTML 17Page - STMicroelectronics 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 20 / 29 page
background image
Controller area network (CAN) routines
UM0459
20/29
Example:
This example illustrates how to send a standard ID data frame containing 4 data bytes.
{
canmsg CanMsg = { CAN_STD_ID, 0x111, 4, {0x10, 0x20, 0x40, 0x80} };
/*CAN1 Sends a standard ID data frame containing 4 data values*/
CAN_SendMessage(CAN1, 0, &CanMsg);
}
2.2.14
CAN_UpdateMsgObj function
2.2.15
CAN_TransmitRequest function
Table 18.
CAN_UpdateMsgObj function description
Function name
CAN_UpdateMsgObj
Prototype
ErrorStatus CAN_SendMessage(CAN_TypeDef* CAN, u16 msgobj,
canmsg* pCanMsg);
Behavior description
Updates the CAN message object with pCanMsg fields.
Input parameter 1
CAN: Pointer to a CAN1 or CAN2 CAN_TypeDef structure.
Input parameter 2
msgobj: message object number, from 0 to 31.
Input parameter 3
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: IF found to treat the message and the pCanMsg id
corresponds to the message idType configuration
– ERROR: IF not found to treat the message or if the pCanMsg id does not
correspond to the message idType configuration
Required preconditions
The message object must have been set up properly.
Called functions
CAN_GetFreeIF
Table 19.
CAN_TransmitRequest function description
Function name
CAN_TransmitRequest
Prototype
ErrorStatus CAN_TransmitRequest(CAN_TypeDef* CAN, u16 msgobj);
Behavior description
Starts the transmission of a message object. A data frame is transmitted if
the message object is configured in transmission mode. A remote frame is
transmitted if the message object is configured in reception mode.
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
An ErrorStatus enumeration value:
– SUCCESS: IF found to treat the message
– ERROR: IF not found to treat the message
Required preconditions The message object must have been set up properly.
Called functions
CAN_GetFreeIF



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


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
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