{"id":49549897,"url":"https://github.com/futekast/crc16_modbus","last_synced_at":"2026-05-02T22:01:06.197Z","repository":{"id":354939840,"uuid":"1226127208","full_name":"futekast/CRC16_MODBUS","owner":"futekast","description":"Reusable C implementation of CRC-16/MODBUS with documented bitwise and table-based calculation methods.","archived":false,"fork":false,"pushed_at":"2026-05-01T02:29:17.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-01T04:14:38.053Z","etag":null,"topics":["c","checksum","crc","crc16","crc16-modbus","embedded","error-detection","firmware","modbus"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/futekast.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-01T02:18:21.000Z","updated_at":"2026-05-01T02:29:18.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/futekast/CRC16_MODBUS","commit_stats":null,"previous_names":["futekast/crc16_modbus"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/futekast/CRC16_MODBUS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/futekast%2FCRC16_MODBUS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/futekast%2FCRC16_MODBUS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/futekast%2FCRC16_MODBUS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/futekast%2FCRC16_MODBUS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/futekast","download_url":"https://codeload.github.com/futekast/CRC16_MODBUS/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/futekast%2FCRC16_MODBUS/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32550914,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T21:31:48.061Z","status":"ssl_error","status_checked_at":"2026-05-02T21:31:46.574Z","response_time":132,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","checksum","crc","crc16","crc16-modbus","embedded","error-detection","firmware","modbus"],"created_at":"2026-05-02T22:00:32.639Z","updated_at":"2026-05-02T22:01:06.188Z","avatar_url":"https://github.com/futekast.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CRC16_MODBUS\n\nReusable C implementation of CRC-16/MODBUS.\n\n## Files\n\n- `include/crc16_modbus.h`\n- `src/crc16_modbus.c`\n- `examples/main.c`\n\n## CRC Parameters\n\n| Parameter | Value |\n|---|---:|\n| Name | CRC-16/MODBUS |\n| Polynomial | 0x8005 |\n| Reflected Polynomial | 0xA001 |\n| Initial Value | 0xFFFF |\n| Input Reflected | Yes |\n| Output Reflected | Yes |\n| Final XOR | 0x0000 |\n\n## Validation\n\nASCII Check: `\"123456789\"` -\u003e `0x4B37`\n\nHEX Check: `0x12 0x34 0x56 0x78 0x09` -\u003e `0x2590`\n\nReverse ASCII Check: `\"987654321\"` -\u003e `0xC9D3`\n\nReverse HEX Check: `0x09 0x78 0x56 0x34 0x12` -\u003e `0x7C96`\n\nBoth bitwise and table-based functions are validated against the same expected results.\n\n## Byte-Order Note\n\nCRC-16/MODBUS is calculated over the byte order provided to the function.\n\nIf a protocol displays bytes in one order but defines CRC calculation over the reverse order, the input buffer must be arranged in the protocol-defined CRC order before calling the CRC function.\n\nExample:\n\nDisplayed HEX input:\n\n```text\n0x12 0x34 0x56 0x78 0x09","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffutekast%2Fcrc16_modbus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffutekast%2Fcrc16_modbus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffutekast%2Fcrc16_modbus/lists"}