TTK4155 Ping-pong project
button_driver.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  button_t { joystick_button = 0, slider_l_button, slider_r_button }
 

Functions

uint8_t button_read (button_t button)
 Function to read joystick button or touch button push. More...
 
int button_init (void)
 Initialize button registers. More...
 

Detailed Description

Implementation of button driver header.

Enumeration Type Documentation

◆ button_t

enum button_t
Enumerator
joystick_button 
slider_l_button 
slider_r_button 

Function Documentation

◆ button_init()

int button_init ( void  )

Initialize button registers.

Here is the caller graph for this function:

◆ button_read()

uint8_t button_read ( button_t  button)

Function to read joystick button or touch button push.

Parameters
buttonType of button to read.
Here is the caller graph for this function: