亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? srecord.h

?? Avr系列單片機反匯編器源代碼.GCC編譯
?? H
字號:
#ifndef SRECORD_H#define SRECORD_H/** * \file srecord.h * \brief Low-level utility functions to create, read, write, and print Motorola S-Record binary records. * \author Vanya A. Sergeev <vsergeev@gmail.com> * \date December 24 2006 * \version 1.0.0 * \brief License: Public Domain */ #include <stdio.h>#include <stdint.h>#include <stdlib.h>#include <string.h>/* General definition of the S-Record specification */enum _SRecordDefinitions {	/* 768 should be plenty of space to read in an S-Record */	SRECORD_RECORD_BUFF_SIZE = 768,	/* Offsets and lengths of various fields in an S-Record record */	SRECORD_TYPE_OFFSET = 1,	SRECORD_TYPE_LEN = 1,	SRECORD_COUNT_OFFSET = 2,	SRECORD_COUNT_LEN = 2,	SRECORD_ADDRESS_OFFSET = 4,	SRECORD_CHECKSUM_LEN = 2,	/* Maximum ascii hex length of the S-Record data field */	SRECORD_MAX_DATA_LEN = 64,	/* Maximum ascii hex length of the S-Record address field */	SRECORD_MAX_ADDRESS_LEN = 8,	/* Ascii hex length of a single byte */	SRECORD_ASCII_HEX_BYTE_LEN = 2,	/* Start code offset and value */	SRECORD_START_CODE_OFFSET = 0,	SRECORD_START_CODE = 'S',};/** * All possible error codes the Motorola S-Record utility functions may return. */enum SRecordErrors {	SRECORD_OK = 0, /**< Error code for success or no error. */	SRECORD_ERROR_FILE = -1, /**< Error code for error while reading from or writing to a file. You may check errno for the exact error if this error code is encountered. */	SRECORD_ERROR_EOF = -2, /**< Error code for encountering end-of-file when reading from a file. */	SRECORD_ERROR_INVALID_RECORD = -3, /**< Error code for error if an invalid record was read. */	SRECORD_ERROR_INVALID_ARGUMENTS = -4, /**< Error code for error from invalid arguments passed to function. */};/** * Motorola S-Record Types S0-S9 */enum SRecordTypes {	SRECORD_TYPE_S0 = 0, /**< Header record, although there is an official format it is often made proprietary by third-parties. 16-bit address normally set to 0x0000 and header information is stored in the data field. This record is unnecessary and commonly not used. */	SRECORD_TYPE_S1, /**< Data record with 16-bit address */	SRECORD_TYPE_S2, /**< Data record with 24-bit address */	SRECORD_TYPE_S3, /**< Data record with 32-bit address */	SRECORD_TYPE_S4, /**< Extension by LSI Logic, Inc. See their specification for more details. */	SRECORD_TYPE_S5, /**< 16-bit address field that contains the number of S1, S2, and S3 (all data) records transmitted. No data field. */	SRECORD_TYPE_S6, /**< 24-bit address field that contains the number of S1, S2, and S3 (all data) records transmitted. No data field. */	SRECORD_TYPE_S7, /**< Termination record for S3 data records. 32-bit address field contains address of the entry point after the S-Record file has been processed. No data field. */	SRECORD_TYPE_S8, /**< Termination record for S2 data records. 24-bit address field contains address of the entry point after the S-Record file has been processed. No data field. */	SRECORD_TYPE_S9, /**< Termination record for S1 data records. 16-bit address field contains address of the entry point after the S-Record file has been processed. No data field. */};/** * Structure to hold the fields of a Motorola S-Record record. */struct _SRecord {	uint32_t address; /**< The address field. This can be 16-,24-, or 32-bits depending on the record type. */	uint8_t data[SRECORD_MAX_DATA_LEN/2]; /**< The 8-bit array data field, which has a maximum size of 32 bytes. */	int dataLen; /**< The number of bytes of data stored in this record. */	int type; /**< The Motorola S-Record type of this record (S0-S9). */	uint8_t checksum; /**< The checksum of this record. */};/** Alias "SRecord" for struct _SRecord, done for convenience and clarity. */typedef struct _SRecord SRecord;/** * Sets all of the record fields of a Motorola S-Record structure. * \param type The Motorola S-Record type (integer value of 0 through 9). * \param address The 32-bit address of the data. The actual size of the address (16-,24-, or 32-bits) when written to a file depends on the S-Record type. * \param data The 8-bit array of data. * \param dataLen The size of the 8-bit data array. * \param srec A pointer to the target Motorola S-Record structure where these fields will be set. * \return SRECORD_OK on success, otherwise one of the SRECORD_ERROR_ error codes. * \retval SRECORD_OK on success. * \retval SRECORD_ERROR_INVALID_ARGUMENTS if srec does not point to a valid SRecord structure, or if the length of the 8-bit data array is out of range (less than zero or greater than the maximum data length allowed by record specifications, see SRecord.data).*/int New_SRecord(int type, uint32_t address, uint8_t data[], int dataLen, SRecord *srec);/** * Reads a Motorola S-Record record from an opened file. * \param srec A pointer to the Motorola S-Record structure that will store the read record. * \param in A file pointer to an opened file that can be read. * \return SRECORD_OK on success, otherwise one of the SRECORD_ERROR_ error codes. * \retval SRECORD_OK on success. * \retval SRECORD_ERROR_INVALID_ARGUMENTS if srec does not point to a valid SRecord structure or the file pointer "in" is invalid. * \retval SRECORD_ERROR_EOF if end-of-file has been reached. * \retval SRECORD_ERROR_FILE if a file reading error has occured. * \retval SRECORD_INVALID_RECORD if the record read is invalid (record did not match specifications or record checksum was invalid).*/int Read_SRecord(SRecord *srec, FILE *in);/** * Writes a Motorola S-Record to an opened file. * \param srec The Motorola S-Record structure that will be written. * \param in A file pointer to an opened file that can be written to. * \return SRECORD_OK on success, otherwise one of the SRECORD_ERROR_ error codes. * \retval SRECORD_OK on success.  * \retval SRECORD_ERROR_INVALID_ARGUMENTS if the file pointer "out" is invalid. * \retval SRECORD_ERROR_INVALID_RECORD if the record's data length (the SRecord.dataLen variable of the record) is out of range (greater than the maximum data length allowed by record specifications, see SRecord.data). * \retval SRECORD_ERROR_FILE if a file writing error has occured.*/int Write_SRecord(const SRecord srec, FILE *out);/** * Prints the contents of a Motorola S-Record structure to stdout. * The record dump consists of the type, address, entire data array, and checksum fields of the record. * \param srec The Motorola S-Record structure that will be printed to stdout. * \return Always returns SRECORD_OK (success). * \retval SRECORD_OK on success.*/void Print_SRecord(const SRecord srec);/** * Calculates the checksum of a Motorola S-Record SRecord structure. * See the Motorola S-Record specifications for more details on the checksum calculation. * \param srec The Motorola S-Record structure that the checksum will be calculated of. * \return The 8-bit checksum.*/uint8_t Checksum_SRecord(const SRecord srec);#endif	

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
www.亚洲色图.com| 国产精品青草综合久久久久99| 欧洲中文字幕精品| 色8久久精品久久久久久蜜| www.久久精品| 91老司机福利 在线| 91欧美激情一区二区三区成人| 成人av动漫网站| 97aⅴ精品视频一二三区| 99riav一区二区三区| 色狠狠一区二区| 欧美精品色综合| 欧美精品色综合| 欧美精品一区二区三区在线播放 | 日韩视频在线你懂得| 91精品国产手机| 久久亚洲影视婷婷| 欧美国产禁国产网站cc| 综合激情网...| 五月婷婷久久综合| 蜜臀av一级做a爰片久久| 九九九精品视频| 国产不卡在线视频| 色中色一区二区| 欧美日韩国产影片| 精品第一国产综合精品aⅴ| 国产日韩精品久久久| 自拍偷拍亚洲欧美日韩| 亚洲午夜影视影院在线观看| 日韩精品欧美精品| 高清免费成人av| 在线免费不卡视频| 欧美成人video| 国产精品视频一二| 五月天激情小说综合| 麻豆91在线看| 91在线看国产| 精品国产网站在线观看| 国产精品美女久久久久久2018 | 一本一本久久a久久精品综合麻豆| 色婷婷av久久久久久久| 正在播放亚洲一区| 欧美激情一区二区三区不卡| 亚洲一区二区欧美激情| 狠狠v欧美v日韩v亚洲ⅴ| 99精品欧美一区二区三区小说 | 99久久久免费精品国产一区二区| 欧美专区亚洲专区| 久久亚洲精华国产精华液| 亚洲天堂免费看| 久久电影国产免费久久电影| 99re成人精品视频| 欧美mv日韩mv国产网站app| 国产精品国产馆在线真实露脸| 视频一区中文字幕国产| 成人激情图片网| 91精品国产手机| 亚洲人精品午夜| 国产一区在线精品| 精品视频一区三区九区| 国产丝袜欧美中文另类| 丝袜诱惑制服诱惑色一区在线观看 | 精品国产免费人成在线观看| 伊人色综合久久天天人手人婷| 久久99久久精品| 欧美唯美清纯偷拍| 国产精品蜜臀在线观看| 免费成人结看片| 欧洲色大大久久| 中文字幕国产精品一区二区| 日本不卡一区二区三区高清视频| 91小视频免费看| 日本一区二区三区dvd视频在线| 青青草国产成人99久久| 欧美日韩一卡二卡| 亚洲美女淫视频| 成熟亚洲日本毛茸茸凸凹| 日韩欧美黄色影院| 日韩精品免费专区| 色94色欧美sute亚洲线路二| 国产精品久久三区| 国产福利91精品| 26uuu精品一区二区三区四区在线| 亚洲成人av中文| 欧洲一区二区三区免费视频| 亚洲视频在线一区| 成人h精品动漫一区二区三区| 精品久久久久久久久久久院品网 | 亚洲久草在线视频| 成人免费观看视频| 久久久国产精品不卡| 国产尤物一区二区在线| 亚洲精品在线观看视频| 九九久久精品视频| 久久夜色精品一区| 国产中文一区二区三区| 日韩视频免费观看高清在线视频| 丝袜亚洲另类丝袜在线| 91精品中文字幕一区二区三区| 亚洲午夜精品久久久久久久久| 在线看国产一区二区| 亚洲欧美一区二区久久| 91视频91自| 亚洲激情自拍偷拍| 欧美亚男人的天堂| 天使萌一区二区三区免费观看| 在线观看91av| 欧美aaaaaa午夜精品| 欧美一级久久久| 久久99精品国产麻豆婷婷| 欧美sm美女调教| 国产成人av福利| 亚洲欧洲av色图| 91高清在线观看| 亚欧色一区w666天堂| 日韩一区二区电影网| 精品一区二区三区不卡| 久久精品亚洲国产奇米99| 懂色av一区二区夜夜嗨| 中文字幕在线视频一区| 日本丶国产丶欧美色综合| 亚洲成人动漫一区| 日韩欧美一级二级三级久久久| 精品制服美女丁香| 欧美极品少妇xxxxⅹ高跟鞋| 97精品久久久午夜一区二区三区 | 狠狠网亚洲精品| 国产精品久久午夜| 欧美伊人久久久久久午夜久久久久| 亚洲高清久久久| 精品久久久久久久久久久久包黑料 | 色88888久久久久久影院按摩| 一区二区三区在线免费视频 | 欧美国产一区二区| 一本一本久久a久久精品综合麻豆| 亚洲成人一区二区| 久久综合久久99| 92精品国产成人观看免费| 亚洲国产aⅴ成人精品无吗| 日韩欧美国产精品一区| 成人免费视频免费观看| 亚洲综合在线视频| 日韩精品一区二区三区中文精品 | 欧美精品v国产精品v日韩精品| 男人的天堂久久精品| 亚洲国产精品t66y| 欧美影院一区二区| 国产精品一色哟哟哟| 一区二区成人在线视频| 欧美一区二区三区思思人| 国内外成人在线视频| 1024国产精品| 日韩一级成人av| 91在线播放网址| 久久99国产精品尤物| 国产精品国产三级国产aⅴ入口 | 日韩一二三区不卡| 99精品欧美一区二区三区小说| 免费人成网站在线观看欧美高清| 国产精品久久午夜夜伦鲁鲁| 欧美日韩久久久久久| 国产成人一区二区精品非洲| 婷婷久久综合九色国产成人 | 成熟亚洲日本毛茸茸凸凹| 午夜精品久久久久久久久久久| 国产日产欧美精品一区二区三区| 欧美高清你懂得| 色综合久久中文字幕综合网| 激情久久久久久久久久久久久久久久| 亚洲免费在线电影| 国产日本亚洲高清| 欧美一区二区免费| 欧美性极品少妇| 不卡免费追剧大全电视剧网站| 久久精品99国产精品| 亚洲在线视频一区| 亚洲人午夜精品天堂一二香蕉| 久久综合给合久久狠狠狠97色69| 欧美日韩三级在线| 在线一区二区三区四区| 东方aⅴ免费观看久久av| 毛片一区二区三区| 日韩国产精品久久久久久亚洲| 亚洲精品你懂的| 国产精品大尺度| 国产欧美日韩一区二区三区在线观看| 91麻豆精品国产91久久久久久久久 | 91精品欧美一区二区三区综合在 | 中文字幕欧美日本乱码一线二线| 精品久久国产97色综合| 欧美一级夜夜爽| 欧美高清www午色夜在线视频| 91久久久免费一区二区| 99在线视频精品| 成人黄色777网| 国产成人av电影在线播放| 国产夫妻精品视频| 国产成人亚洲综合色影视| 国产乱码字幕精品高清av| 国产永久精品大片wwwapp|