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

X  

UM0459 датащи(PDF) 25 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) 25 Page - STMicroelectronics

Back Button 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 UM0459 Datasheet HTML 29Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 25 / 29 page
background image
UM0459
Controller area network (CAN) routines
25/29
2.2.21
CAN_GetMsgTransmiRequestStatus
Example:
This example illustrates how to test the transmit request.
{
/*Send a message using object 0*/
CAN_SendMessage(CAN1, 0, &CanMsg);
/*Wait for the end of transmit request*/
while (CAN_GetMsgTransmitRequestStatus(CAN1, 0));
/*Now, the message is being processed by the priority handler of the CAN cell, and
ready to be emitted on the bus*/
}
2.2.22
CAN_GetMsgInterruptStatus function
Example:
This example illustrates how to test interrupt pending.
{
/*Send a message using object 0*/
CAN_SendMessage(CAN1, 0, &CanMsg)
/* Wait for the TX interrupt*/
Table 25.
CAN_GetMsgTransmitRequestStatus function description
Function name
CAN_GetMsgTransmitRequestStatus
Prototype
FlagStatus CAN_GetMsgTransmitRequestStatus(CAN_TypeDef* CAN,
u16 msgobj);
Behavior description
Tests the request status of a transmitted message. It reads the
corresponding bit in the Transmission Request 1 or 2 registers.
Input parameter1
CAN: pointer to a CAN_TypeDef structure.
Input parameter2
msgobj: message object number, from 0 to 31.
Output parameter
None
Return value
1 if transmission of the corresponding message was requested, else 0.
Required preconditions
A message must have been sent before.
Called functions
None
Table 26.
CAN_GetMsgInterruptStatus function description
Function name
CAN_GetMsgInterruptStatus
Prototype
FlagStatus CAN_GetMsgInterruptStatus(CAN_TypeDef* CAN, u16 msgobj);
Behavior description
Tests the interrupt status of a message object. It reads the corresponding
bit in the Interrupt Pending 1 or 2 registers.
Input parameter1
CAN: pointer to a CAN1 or CAN2 CAN_TypeDef structure.
Input parameter2
msgobj: message object number, from 0 to 31.
Output parameter
None
Return value
1 if the corresponding message has an interrupt pending, else 0.
Required preconditions The interrupts must have been enabled.
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


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

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