mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2025-04-21 12:27:27 +03:00
libatrf: new function atrf_interrupt_wait for interrupt-driven wait for interrupt
- tools/lib/driver.h (struct atrf_driver): new driver operation interrupt_wait - include/atrf.h (atrf_interrupt_wait), atrf.c: new function to wait for a transceiver interrupt without polling
This commit is contained in:
@@ -36,6 +36,7 @@ struct atrf_driver {
|
||||
void (*sram_write)(void *dsc, uint8_t addr, uint8_t value);
|
||||
uint8_t (*sram_read)(void *dsc, uint8_t addr);
|
||||
int (*interrupt)(void *dsc);
|
||||
int (*interrupt_wait)(void *dsc, int timeout_ms);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user