theCore C++ embedded framework
|
Files | |
file | stm32/exti_manager.cpp |
EXTI manager implementation for STM32 platform. | |
file | stm32/export/platform/exti_manager.hpp |
External interrupt manager for STM32 platform. | |
Data Structures | |
class | ecl::exti_manager |
External interrupt manager class. More... | |
Functions | |
static void | ecl::exti_manager::init () |
Initializes EXTI manager. More... | |
static void | ecl::exti_manager::unsubscribe (handler &h) |
Unsubscribes handler from any event. More... | |
static void | ecl::exti_manager::mask (handler &h) |
Masks (disables) pending EXTI request. More... | |
static void | ecl::exti_manager::unmask (handler &h) |
Unmasks (enables) pending EXTI request. More... | |
ecl::exti_manager::handler::handler (callback cb, void *ctx) | |
Constructs handler with user data. More... | |
ecl::exti_manager::handler::~handler () | |
Destroys handler and unsubscribe it from EXTI events. More... | |
void | ecl::exti_manager::handler::set_cb (callback cb) |
Sets user-defined callback. More... | |
void | ecl::exti_manager::handler::set_ctx (void *ctx) |
Sets user-defined context. More... | |
template<typename Gpio > | |
static void | ecl::exti_manager::subscribe (handler &h, trigger t) |
Subscribes to event on the given GPIO. More... | |
|
static |
Initializes EXTI manager.
|
static |
Unsubscribes handler from any event.
[in] | h | Handler, must be previously subscribed. |
|
static |
Masks (disables) pending EXTI request.
[in] | h | Previously subscribed handler. |
|
static |
Unmasks (enables) pending EXTI request.
[in] | h | Previously subscribed handler. |
ecl::exti_manager::handler::handler | ( | exti_manager::callback | cb, |
void * | ctx | ||
) |
Constructs handler with user data.
ecl::exti_manager::handler::~handler | ( | ) |
Destroys handler and unsubscribe it from EXTI events.
void ecl::exti_manager::handler::set_cb | ( | callback | cb | ) |
Sets user-defined callback.
void ecl::exti_manager::handler::set_ctx | ( | void * | ctx | ) |
Sets user-defined context.
|
static |
Subscribes to event on the given GPIO.
User should retain handler object in the valid state in order to receive any events associated with given EXTI. Upon deletion of the handler object unsubscription will be executed by itself.
[out] | h | Unsubscribed handler of a GPIO event. |
[in] | t | Trigger which will produce event. |