Speeduino
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
interrupt_t Struct Reference

This structure represents a trigger interrupt. More...

#include <decoder_t.h>

Public Types

using callback_t = void(*)(void)
 

Public Member Functions

void attach (uint8_t pin) const
 Attach the interrupt to a pin.
 
void detach (uint8_t pin) const
 Detach the interrupt from a pin.
 
bool isValid (void) const
 

Public Attributes

callback_t callback = nullptr
 The callback function to be called on interrupt.
 
uint8_t edge = TRIGGER_EDGE_NONE
 The edge type for the interrupt. E.g. RISING, FALLING, CHANGE.
 

Detailed Description

This structure represents a trigger interrupt.

Member Typedef Documentation

◆ callback_t

Member Function Documentation

◆ attach()

void interrupt_t::attach ( uint8_t  pin) const
inline

Attach the interrupt to a pin.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ detach()

void interrupt_t::detach ( uint8_t  pin) const
inline

Detach the interrupt from a pin.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isValid()

bool interrupt_t::isValid ( void  ) const
inline
Here is the caller graph for this function:

Member Data Documentation

◆ callback

callback_t interrupt_t::callback = nullptr

The callback function to be called on interrupt.

◆ edge

uint8_t interrupt_t::edge = TRIGGER_EDGE_NONE

The edge type for the interrupt. E.g. RISING, FALLING, CHANGE.


The documentation for this struct was generated from the following file: