libpynq
(release 5EID0-2023 version 0.3.0 of 2024-04-25 09:42 )
|
Go to the documentation of this file.
22 #ifndef PULSECOUNTER_H
23 #define PULSECOUNTER_H
111 uint8_t
const count);
void pulsecounter_set_edge(const pulsecounter_index_t pci, const gpio_level_t edge)
uint32_t pulsecounter_get_count(const pulsecounter_index_t pci, uint32_t *timestamp)
void pulsecounter_init(const pulsecounter_index_t pci)
initialize the pulsecounter specified by the index with a shared memory pointer
void pulsecounter_destroy(const pulsecounter_index_t pci)
Close the shared memory handle for the specified PULSECOUNTER index.
uint8_t pulsecounter_get_filter_length(const pulsecounter_index_t pci)
void pulsecounter_reset_count(const pulsecounter_index_t pci)
gpio_level_t pulsecounter_get_edge(const pulsecounter_index_t pci)
pulsecounter_index_t
Enum of PULSECOUNTERs. Functions use a switch numbered from 0..NUM_PULSECOUNTERS-1.
void pulsecounter_set_filter_length(const pulsecounter_index_t pci, uint8_t const count)