| поискавой системы для электроныых деталей |
|
UM0459 датащи(PDF) 25 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0459 датащи(HTML) 25 Page - STMicroelectronics |
|
25 / 29 page ![]() 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 |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |