blob: 8b70def9c382c527d0238e7c68f45657978a8add [file] [log] [blame]
Zane Shelleya61f4c52019-08-01 13:58:49 -05001#pragma once
2
Zane Shelleydd69c962020-05-05 22:19:11 -05003#include <isolator/hei_isolation_chip.hpp>
Zane Shelleya61f4c52019-08-01 13:58:49 -05004
5namespace libhei
Zane Shelleydd69c962020-05-05 22:19:11 -05006{
7
8/**
9 * @brief Parses a buffer containing a Chip Data File and builds the necessary
10 * objects.
11 *
12 * This function will assert:
13 * - The buffer is a properly formated Chip Data File and contains valid data.
14 * - An IsolationChip object has not already been created for the chip type
15 * associated with the given buffer.
16 *
17 * @param i_buffer First address of the Chip Data File buffer.
18 * @param i_bufferSize Size of the Chip Data File buffer.
19 * @param io_isoChips This map will contain all current IsolationChip objects
20 * for each of the user applications chip types.
21 */
22void parseChipDataFile(void* i_buffer, size_t i_bufferSize,
Zane Shelley4de8ff82020-05-14 15:39:01 -050023 IsolationChip::Map& io_isoChips);
Zane Shelleydd69c962020-05-05 22:19:11 -050024
25} // end namespace libhei