theCore C++ embedded framework
ecl::exti_manager::handler Class Reference

External interrupt handler. More...

#include </home/travis/build/forGGe/theCore/platform/tm4c/export/platform/exti_manager.hpp>

Collaboration diagram for ecl::exti_manager::handler:

Public Member Functions

 handler ()=default
 Constructs empty handler. More...
 
 handler (callback cb, void *ctx)
 Constructs handler with user data. More...
 
 ~handler ()
 Destroys handler and unsubscribe it from EXTI events. More...
 
void set_ctx (void *ctx)
 Sets user-defined context. More...
 
void set_cb (callback cb)
 Sets user-defined callback. More...
 
handleroperator= (handler &)=default
 
 handler (const handler &)=default
 
 handler ()=default
 Constructs empty handler. More...
 
 handler (callback cb, void *ctx)
 Constructs handler with user data. More...
 
 ~handler ()
 Destroys handler and unsubscribe it from EXTI events. More...
 
void set_ctx (void *ctx)
 Sets user-defined context. More...
 
void set_cb (callback cb)
 Sets user-defined callback. More...
 
handleroperator= (handler &)=default
 
 handler (const handler &)=default
 

Data Fields

ecl::list_node m_node = {}
 List node of the EXTI handlers list. More...
 

Friends

class exti_manager
 

Detailed Description

External interrupt handler.

An object of this class is linked into the intrusive list of EXTI handlers. Client must retain the object and make sure that it will not be destroyed without deregistering.

Constructor & Destructor Documentation

◆ handler() [1/5]

ecl::exti_manager::handler::handler ( )
default

Constructs empty handler.

◆ handler() [2/5]

ecl::exti_manager::handler::handler ( const handler )
default

◆ handler() [3/5]

ecl::exti_manager::handler::handler ( )
default

Constructs empty handler.

◆ handler() [4/5]

ecl::exti_manager::handler::handler ( callback  cb,
void *  ctx 
)
inline

Constructs handler with user data.

◆ ~handler()

ecl::exti_manager::handler::~handler ( )
inline

Destroys handler and unsubscribe it from EXTI events.

Here is the call graph for this function:

◆ handler() [5/5]

ecl::exti_manager::handler::handler ( const handler )
default

Member Function Documentation

◆ operator=() [1/2]

handler& ecl::exti_manager::handler::operator= ( handler )
default

◆ set_ctx()

void ecl::exti_manager::handler::set_ctx ( void *  ctx)
inline

Sets user-defined context.

◆ set_cb()

void ecl::exti_manager::handler::set_cb ( callback  cb)
inline

Sets user-defined callback.

◆ operator=() [2/2]

handler& ecl::exti_manager::handler::operator= ( handler )
default

Friends And Related Function Documentation

◆ exti_manager

exti_manager
friend

Field Documentation

◆ m_node

ecl::list_node ecl::exti_manager::handler::m_node = {}

List node of the EXTI handlers list.


The documentation for this class was generated from the following files: