libpynq  (release 5EID0-2023 version 0.3.0 of 2024-04-25 09:42 )
pulsecounter.h File Reference
#include <gpio.h>
#include <stdbool.h>
#include <stdint.h>
Include dependency graph for pulsecounter.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  pulsecounter_index_t { PULSECOUNTER0 = 0, PULSECOUNTER1 = 1, NUM_PULSECOUNTERS = 2 }
 

Functions

void pulsecounter_init (const pulsecounter_index_t pci)
 
void pulsecounter_destroy (const pulsecounter_index_t pci)
 
uint32_t pulsecounter_get_count (const pulsecounter_index_t pci, uint32_t *timestamp)
 
void pulsecounter_reset_count (const pulsecounter_index_t pci)
 
void pulsecounter_set_edge (const pulsecounter_index_t pci, const gpio_level_t edge)
 
gpio_level_t pulsecounter_get_edge (const pulsecounter_index_t pci)
 
void pulsecounter_set_filter_length (const pulsecounter_index_t pci, uint8_t const count)
 
uint8_t pulsecounter_get_filter_length (const pulsecounter_index_t pci)