Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
intc_xmc4xxx.h File Reference

Go to the source code of this file.

Functions

int intc_xmc4xxx_gpio_enable_interrupt (int port_id, int pin, enum gpio_int_mode mode, enum gpio_int_trig trig, void(*fn)(const struct device *, int), void *user_data)
 Enable interrupt for specific port_id and pin combination.
 
int intc_xmc4xxx_gpio_disable_interrupt (int port_id, int pin)
 Disable interrupt for specific port_id and pin combination.
 

Function Documentation

◆ intc_xmc4xxx_gpio_disable_interrupt()

int intc_xmc4xxx_gpio_disable_interrupt ( int  port_id,
int  pin 
)

Disable interrupt for specific port_id and pin combination.

Parameters
port_idPort index
pinpin Pin the port
Return values
0On susccess
-EINVALIf the specific port_id and pin combination has no interrupt enabled

◆ intc_xmc4xxx_gpio_enable_interrupt()

int intc_xmc4xxx_gpio_enable_interrupt ( int  port_id,
int  pin,
enum gpio_int_mode  mode,
enum gpio_int_trig  trig,
void(*)(const struct device *, int)  fn,
void *  user_data 
)

Enable interrupt for specific port_id and pin combination.

Parameters
port_idPort index
pinpin Pin the port
modeLevel or edge interrupt
trigTrigger edge type (falling, rising or both)
fnCallback function
user_dataParameter to the interrupt callback
Return values
0On success
-ENOTSUPIf the specific port_id/pin combination is not supported or not defined in the dts
-EBUSYIf the interrupt line is already used by a different port_id/pin
-EINVALIf the trigger combination is invalid