libpynq (release 5EWC0-2023 version 0.2.6 of 2025-11-10 09:56)
Loading...
Searching...
No Matches
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 int edge)
 
int 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)
 
uint32_t pulsecounter_get_pulsetrain (const pulsecounter_index_t pci, uint32_t *const inv, const uint32_t inv_length)
 
uint32_t pulsecounter_get_pulsetrain_count (const pulsecounter_index_t pci)