Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

#define CALC_CRC ( byte_value,
running_crc   ) 

Value:

{                                  \
    uint8_t data;                                                            \
    data = (0xff&(byte_value)) ^ (running_crc >> 8);                         \
    running_crc = scc_crc_lookup_table[data] ^ (running_crc << 8);           \
}
Calculate CRC on one byte of data

Parameters:
[in,out] running_crc A value of type crc_t where CRC is kept. This must be an rvalue and an lvalue.
[in] byte_value The byte (uint8_t, char) to be put in the CRC
Returns:
none

Definition at line 342 of file mxc_scc_internals.h.

Referenced by copy_from_scc(), copy_to_scc(), and scc_decrypt().


Generated by  Doxygen 1.6.0   Back to index