Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
intelhex.h File Reference
Parser for the intel hex format. More...
Go to the source code of this file.
| enum | hexfile_parse_status_t { HEX_PARSE_OK = 0, HEX_PARSE_EOF, HEX_PARSE_UNALIGNED, HEX_PARSE_LINE_OVERRUN, HEX_PARSE_CKSUM_FAIL, HEX_PARSE_UNINIT, HEX_PARSE_FAILURE } |
Type of states that the parser can return. More... | |
| void | reset_hex_parser (void) |
| Prepare any state that is maintained for the start of a file. | |
| hexfile_parse_status_t | parse_hex_blob (const uint8_t *hex_blob, const uint32_t hex_blob_size, uint32_t *hex_parse_cnt, uint8_t *bin_buf, const uint32_t bin_buf_size, uint32_t *bin_buf_address, uint32_t *bin_buf_cnt) |
| Convert a blob of hex data into its binary equivelant. | |
Detailed Description
Parser for the intel hex format.
DAPLink Interface Firmware Copyright (c) 2009-2016, ARM Limited, All Rights Reserved SPDX-License-Identifier: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file intelhex.h.
Enumeration Type Documentation
Type of states that the parser can return.
- Enumerator:
Definition at line 38 of file intelhex.h.
Function Documentation
| hexfile_parse_status_t parse_hex_blob | ( | const uint8_t * | hex_blob, |
| const uint32_t | hex_blob_size, | ||
| uint32_t * | hex_parse_cnt, | ||
| uint8_t * | bin_buf, | ||
| const uint32_t | bin_buf_size, | ||
| uint32_t * | bin_buf_address, | ||
| uint32_t * | bin_buf_cnt | ||
| ) |
Convert a blob of hex data into its binary equivelant.
- Parameters:
-
hex_blob A block of ascii encoded hexfile data hex_blob_size The amount of valid data in the hex_blob hex_parse_cnt The amount of hex_blob data from the call that was parsed bin_buf Buffer the decoded hex file contents goes into bin_buf_size max size of the buffer bin_buf_address The start address for data in the bin_buf as decoded from the hex file bin_buf_cnt The amount of data in the bin_buf
- Returns:
- A member of hex_parse_status_t that describes the state of decoding
Definition at line 97 of file intelhex.c.
| void reset_hex_parser | ( | void | ) |
Prepare any state that is maintained for the start of a file.
- Parameters:
-
none
- Returns:
- none
Definition at line 86 of file intelhex.c.
Generated on Tue Jul 12 2022 15:37:29 by
1.7.2