crc16_ccitt_lookup

CRC16-CCITT Lookup Table Implementation Library

Author Matthew Schinkel
Adapted-by
Compiler >=2.4r9

Description

CRC16-CCITT implementation using lookup table for maximum speed.
This version splits the large table into smaller chunks to avoid 8-bit PIC memory issues.
Provides identical results to the bitwise implementation but with better performance.


Dependencies

No dependency found



Summary

Global variables/contants

Procedures

Functions


API details

Global variables/contants

Procedures

  • crc16_init(byte in total_bytes)

    Initialize CRC16 calculation
    Parameters: total_bytes - expected number of bytes to process
    Initializes CRC calculation state and sets up for incremental processing
    
    

  • crc16_calculate_bytes(byte in data)

    Calculate CRC16 for a single byte using lookup table
    Parameters: data - single byte to process
    Updates internal CRC state with new data byte using lookup table algorithm
    
    

Functions


Related samples

Here are the list of samples which use this library:

18f67j5018f67j50_crc16_ccitt_lookup.jal