IEEE 802.15.4 subsystem
Sign in or create your account | Project List | Help
IEEE 802.15.4 subsystem Git Source Tree
Root/
| Source at commit ea23c905d32bfd2478915021476f9ede2ee014b8 created 6 years 3 months ago. By Josef Filzmaier, atusb/fw: Introduction of a new board named HULUSB | |
|---|---|
| 1 | /* |
| 2 | * lib/timeout.h - ATRF driver API |
| 3 | * |
| 4 | * Written 2011 by Werner Almesberger |
| 5 | * Copyright 2011 Werner Almesberger |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; either version 2 of the License, or |
| 10 | * (at your option) any later version. |
| 11 | */ |
| 12 | |
| 13 | |
| 14 | #ifndef TIMEOUT_H |
| 15 | #define TIMEOUT_H |
| 16 | |
| 17 | #include <sys/time.h> |
| 18 | |
| 19 | |
| 20 | struct timeout { |
| 21 | struct timeval end; |
| 22 | }; |
| 23 | |
| 24 | |
| 25 | void timeout_start(struct timeout *t, int ms); |
| 26 | int timeout_reached(const struct timeout *t); |
| 27 | int timeout_left_ms(const struct timeout *t); |
| 28 | |
| 29 | #endif /* !TIMEOUT_H */ |
| 30 | |
