Embedded SDK
Embedded SDK
Macros | Functions
nbgl_buttons.h File Reference
#include "nbgl_types.h"
#include "nbgl_obj.h"
Include dependency graph for nbgl_buttons.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CONTINOUS_PRESS_THRESHOLD   8
 Periodicity of "continuous press" events (in 100ms) More...
 
#define CONTINUOUS_PRESS_PERIOD   3
 

Functions

void nbgl_buttonsHandler (uint8_t buttonState, uint32_t currentTimeMs)
 
void nbgl_buttonsReset (void)
 

Detailed Description

Buttons management of NBGL

Definition in file nbgl_buttons.h.

Macro Definition Documentation

◆ CONTINOUS_PRESS_THRESHOLD

#define CONTINOUS_PRESS_THRESHOLD   8

Periodicity of "continuous press" events (in 100ms)

< Time after the beginning of continuous press on button(s) after which "continuous press" event start to be sent (in 100ms)

Definition at line 26 of file nbgl_buttons.h.

◆ CONTINUOUS_PRESS_PERIOD

#define CONTINUOUS_PRESS_PERIOD   3

Definition at line 27 of file nbgl_buttons.h.

Function Documentation

◆ nbgl_buttonsHandler()

void nbgl_buttonsHandler ( uint8_t  buttonState,
uint32_t  currentTimeMs 
)

◆ nbgl_buttonsReset()

void nbgl_buttonsReset ( void  )