Azure Sphere MT3620 M4 API Reference Manual
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Typedef

This section introduces the typedef that gpioif OS-HAL used. More...

Overview

This section introduces the typedef that gpioif OS-HAL used.

Typedefs

typedef int(* gpioif_int_callback )(void *user_data)
 This defines the callback function prototype. More...
 

Typedef Documentation

typedef int(* gpioif_int_callback)(void *user_data)

This defines the callback function prototype.

It's used for GPIOIF interrupt function handle.
User can register a callback function when using GPIOIF interrupt.
When one interrupt is triggered and a related user callback is called in OS-HAL interrupt handle function which we register.
This typedef is used to describe the callback function what the user wants to call.

Parameters
[in]user_data: An OS-HAL defined parameter provided by mtk_os_hal_gpioif_int_callback_register().
Returns
Return "0" if callback register successfully, or return "-1" if fail.