Zane Shelley | 465e0b3 | 2019-04-17 10:15:39 -0500 | [diff] [blame] | 1 | |
| 2 | #pragma once |
| 3 | |
Zane Shelley | 814b1e3 | 2019-06-17 20:55:04 -0500 | [diff] [blame^] | 4 | // The user application must define this header file with the following macros: |
| 5 | // |
| 6 | // Tracing (inputs same as printf() from <cstdio>): |
| 7 | // HEI_INF( ... ) // Generic informational trace |
| 8 | // HEI_ERR( ... ) // Error path trace |
| 9 | // |
| 10 | // Assertion (at a minimum should work like assert() from <cassert>): |
| 11 | // HEI_ASSERT( expression ) |
| 12 | // |
| 13 | #include <hei_user_defines.hpp> |
Zane Shelley | 465e0b3 | 2019-04-17 10:15:39 -0500 | [diff] [blame] | 14 | |
Zane Shelley | 814b1e3 | 2019-06-17 20:55:04 -0500 | [diff] [blame^] | 15 | namespace libhei |
| 16 | { |
| 17 | |
| 18 | /** |
| 19 | * @brief Perform a hardware read operation. |
| 20 | */ |
| 21 | void deviceRead(); |
| 22 | |
| 23 | #ifndef __HEI_READ_ONLY |
| 24 | |
| 25 | /** |
| 26 | * @brief Perform a hardware write operation. |
| 27 | */ |
| 28 | void deviceWrite(); |
| 29 | |
| 30 | #endif |
| 31 | |
| 32 | } // end namespace libhei |
Zane Shelley | 465e0b3 | 2019-04-17 10:15:39 -0500 | [diff] [blame] | 33 | |