| Electronic Components Datasheet Search |
|
UM0097 Datasheet(PDF) 83 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0097 Datasheet(HTML) 83 Page - STMicroelectronics |
|
83 / 229 page ![]() UM0097 Peripheral firmware overview 83/229 XTI_PendingBitClear Example: This example illustrates how to clear the pending bits in the XTI. void XTI_IRQHandler(void) { /* Read the line number that caused the interrupt, then clear the pending bit. */ XTI_PendingBitClear(XTI_InterruptLineValue()); } XTI_SWIRQGenerate Example: This example generates an IRQ interrupt in the XTI channel. int main(void) { /*Enable interrupts in the XTI */ XTI_ModeConfig(Interrupt, ENABLE); /*Configure the XTI channel priority level */ EIC_IRQChannelPriorityConfig(XTI_IRQChannel, 1); /* Enable XTI interrupts */ EIC_IRQChannelConfig(XTI_IRQChannel, ENABLE); /* Enable IRQ interrupts */ Function Name XTI_PendingBitClear Function Prototype void XTI_PendingBitClear(u16 Lines); Behavior Description This routine is used to clear the XTI interrupt pending bits. Input Parameter Lines: specifies the input wake-up lines interrupt the input wake-up lines interrupt. You can select more than one line by logically OR’ing them. Refer to Section 3.6.2: Common parameter values on page 77 for details on the allowed values of Lines parameter. Output Parameter None Return Value None Required preconditions None Called Functions None Function Name XTI_SWIRQGenerate Function Prototype void XTI_SWIRQGenerate(void); Behavior Description This routine is used to generate a software IRQ interrupt. Input Parameter None Output Parameter None Return Value None Required preconditions None Called Functions None |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |