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 49e7c83796bc04941e9dbcec69bc0751563ff4d4 created 6 years 9 months ago. By Werner Almesberger, atusb/: use ""VDD" symbol from kicad-libs | |
|---|---|
| 1 | /* |
| 2 | * fw/sernum.h - ATUSB serial number |
| 3 | * |
| 4 | * Written 2011, 2013 by Werner Almesberger |
| 5 | * Copyright 2011, 2013 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 | #ifndef SERNUM_H |
| 14 | #define SERNUM_H |
| 15 | |
| 16 | #include <stdbool.h> |
| 17 | #include <stdint.h> |
| 18 | |
| 19 | #include "board.h" |
| 20 | |
| 21 | |
| 22 | #ifdef HAS_BOARD_SERNUM |
| 23 | |
| 24 | bool sernum_get_descr(uint8_t type, uint8_t index, const uint8_t **reply, |
| 25 | uint8_t *size); |
| 26 | |
| 27 | #else /* HAS_BOARD_SERNUM */ |
| 28 | |
| 29 | static inline bool sernum_get_descr(uint8_t type, uint8_t index, |
| 30 | const uint8_t **reply, uint8_t *size) |
| 31 | { |
| 32 | return 0; |
| 33 | } |
| 34 | |
| 35 | #endif /* !HAS_BOARD_SERNUM */ |
| 36 | |
| 37 | #endif /* !SERNUM_H */ |
| 38 | |
