libpynq
(release 5EID0-2023 version 0.3.0 of 2024-04-25 09:42 )
|
Go to the documentation of this file.
44 pulsecounter_ptrs[pci] =
47 pulsecounter_ptrs[pci] =
57 pulsecounter_ptrs[pci] = NULL;
61 uint32_t *timestamp) {
66 if (timestamp != NULL) {
102 uint8_t
const count) {
106 if (count < 1 || count > 15) {
107 pynq_error(
"Filter length needs to be between 1 and 16-1.");
const uint32_t PULSECOUNTER_PULSES
void pulsecounter_set_edge(const pulsecounter_index_t pci, const gpio_level_t edge)
void arm_shared_close(arm_shared *handle)
uint32_t pulsecounter_get_count(const pulsecounter_index_t pci, uint32_t *timestamp)
const uint32_t PULSECOUNTER_COUNTER
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.
const uint32_t PULSECOUNTER_FILTER
uint8_t pulsecounter_get_filter_length(const pulsecounter_index_t pci)
void pulsecounter_reset_count(const pulsecounter_index_t pci)
const uint32_t PULSECOUNTER_EDGE
void * arm_shared_init(arm_shared *handle, const uint32_t address, const uint32_t length)
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)