Zane Shelley | 465e0b3 | 2019-04-17 10:15:39 -0500 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Zane Shelley | 814b1e3 | 2019-06-17 20:55:04 -0500 | [diff] [blame] | 3 | // The user application must define this header file with the following macros: |
| 4 | // |
| 5 | // Tracing (inputs same as printf() from <cstdio>): |
| 6 | // HEI_INF( ... ) // Generic informational trace |
| 7 | // HEI_ERR( ... ) // Error path trace |
| 8 | // |
| 9 | // Assertion (at a minimum should work like assert() from <cassert>): |
| 10 | // HEI_ASSERT( expression ) |
| 11 | // |
| 12 | #include <hei_user_defines.hpp> |
Zane Shelley | 465e0b3 | 2019-04-17 10:15:39 -0500 | [diff] [blame] | 13 | |
Zane Shelley | 814b1e3 | 2019-06-17 20:55:04 -0500 | [diff] [blame] | 14 | namespace libhei |
| 15 | { |
| 16 | |
| 17 | /** |
Zane Shelley | a61f4c5 | 2019-08-01 13:58:49 -0500 | [diff] [blame] | 18 | * @brief Perform a hardware read operation. |
| 19 | * @param i_chip This is a pointer to a user application object that represents |
| 20 | * the target chip. The isolator does not know anything about this |
| 21 | * object or how to use it. It is provide by the user application |
| 22 | * via the Isolator APIs. The user application is responsible for |
| 23 | * knowing what to do with this parameter. |
Zane Shelley | 814b1e3 | 2019-06-17 20:55:04 -0500 | [diff] [blame] | 24 | */ |
Zane Shelley | a61f4c5 | 2019-08-01 13:58:49 -0500 | [diff] [blame] | 25 | ReturnCode deviceRead( void * i_chip ); |
Zane Shelley | 814b1e3 | 2019-06-17 20:55:04 -0500 | [diff] [blame] | 26 | |
| 27 | #ifndef __HEI_READ_ONLY |
| 28 | |
| 29 | /** |
Zane Shelley | a61f4c5 | 2019-08-01 13:58:49 -0500 | [diff] [blame] | 30 | * @brief Perform a hardware write operation. |
| 31 | * @param i_chip This is a pointer to a user application object that represents |
| 32 | * the target chip. The isolator does not know anything about this |
| 33 | * object or how to use it. It is provide by the user application |
| 34 | * via the Isolator APIs. The user application is responsible for |
| 35 | * knowing what to do with this parameter. |
Zane Shelley | 814b1e3 | 2019-06-17 20:55:04 -0500 | [diff] [blame] | 36 | */ |
Zane Shelley | a61f4c5 | 2019-08-01 13:58:49 -0500 | [diff] [blame] | 37 | ReturnCode deviceWrite( void * i_chip ); |
Zane Shelley | 814b1e3 | 2019-06-17 20:55:04 -0500 | [diff] [blame] | 38 | |
| 39 | #endif |
| 40 | |
| 41 | } // end namespace libhei |
Zane Shelley | 465e0b3 | 2019-04-17 10:15:39 -0500 | [diff] [blame] | 42 | |