MT2523 API Reference  LinkIt SDK v4
Typedef
HAL » GPT

Overview

Typedefs

typedef void(* hal_gpt_callback_t) (void *user_data)
 Register a callback function when using GPT oneshot or repeat modes. More...
 

Typedef Documentation

typedef void(* hal_gpt_callback_t) (void *user_data)

Register a callback function when using GPT oneshot or repeat modes.

The callback is called after the timer expires and triggers an interrupt in the GPT ISR routine. For more details about the callback function, please refer to hal_gpt_register_callback().

Parameters
[in]user_datais the pointer to the user defined data to pass to the callback function.