libpynq (release 5EWC0-2023 version 0.2.2 of 2023-09-24 22:22)
Loading...
Searching...
No Matches
buttons.c File Reference
#include <buttons.h>
#include <gpio.h>
#include <log.h>
#include <pinmap.h>
#include <platform.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <unistd.h>
Include dependency graph for buttons.c:

Go to the source code of this file.

Macros

#define LOG_DOMAIN   "buttons"
 

Functions

void buttons_init (void)
 
void buttons_destroy (void)
 
void switches_init (void)
 
void switches_destroy (void)
 
int get_button_state (const int button)
 
int wait_until_button_state (const int button, const int state)
 
int sleep_msec_button_pushed (const int button, const int ms)
 
void sleep_msec_buttons_pushed (int button_states[], const int ms)
 
int wait_until_button_pushed (const int button)
 
int wait_until_button_released (const int button)
 
int wait_until_any_button_pushed (void)
 
int wait_until_any_button_released (void)
 
int get_switch_state (const int switch_num)
 

Macro Definition Documentation

◆ LOG_DOMAIN

#define LOG_DOMAIN   "buttons"

Definition at line 34 of file buttons.c.