MAVRK Embedded Software 0.91
Software Libraries for the MAVRK motherboard and related components
|
Functions that perform the equivalent CRC16 and CRC32 to the hardware components. More...
Functions | |
unsigned short | mvk_Make_Bitwise_Crc16 (unsigned short crc, unsigned short poly, unsigned char *pmsg, unsigned int msg_size) |
Perform a 16 bit CRC in software. | |
unsigned short | mvk_Make_Bitwise_Crc16_2 (unsigned short crc, unsigned short poly, unsigned char *pmsg, unsigned int msg_size) |
Perform a 16 bit CRC in software. | |
unsigned long | mvk_Make_Bitwise_Crc32 (unsigned long crc, unsigned long poly, unsigned char *pmsg, unsigned int msg_size) |
Perform a 32 bit CRC in software. | |
unsigned long | mvk_Make_Bitwise_Crc32_2 (unsigned long crc, unsigned long poly, unsigned char *pmsg, unsigned int msg_size) |
Perform a 32 bit CRC in software. |
Functions that perform the equivalent CRC16 and CRC32 to the hardware components.
The software based CRC functions are designed to perform a CRC16 and CRC32 without the hardware engine. This allows micro-processors without a CRC engine to still create CRC values for message blocks.
There is also a C optimized version of each algorithm present in the file.
unsigned short mvk_Make_Bitwise_Crc16 | ( | unsigned short | crc, |
unsigned short | poly, | ||
unsigned char * | pmsg, | ||
unsigned int | msg_size | ||
) |
Perform a 16 bit CRC in software.
This function performs a 16 bit CRC on the data block using the polynomial provided.
[in] | crc | CRC init value |
[in] | poly | CRC generator polynomial |
[in] | *pmsg | Pointer to the block of data on which we will perform the CRC |
[in] | msg_size | Number of bytes in the CRC data block |
unsigned short mvk_Make_Bitwise_Crc16_2 | ( | unsigned short | crc, |
unsigned short | poly, | ||
unsigned char * | pmsg, | ||
unsigned int | msg_size | ||
) |
Perform a 16 bit CRC in software.
This is a C optimized version of the algorithm that performs a 16 bit CRC on the data block using the polynomial provided.
[in] | crc | CRC init value |
[in] | poly | CRC generator polynomial |
[in] | *pmsg | Pointer to the block of data on which we will perform the CRC |
[in] | msg_size | Number of bytes in the CRC data block |
unsigned long mvk_Make_Bitwise_Crc32 | ( | unsigned long | crc, |
unsigned long | poly, | ||
unsigned char * | pmsg, | ||
unsigned int | msg_size | ||
) |
Perform a 32 bit CRC in software.
This function performs a 32 bit CRC on the data block using the polynomial provided.
[in] | crc | CRC init value |
[in] | poly | CRC generator polynomial |
[in] | *pmsg | Pointer to the block of data on which we will perform the CRC |
[in] | msg_size | Number of bytes in the CRC data block |
unsigned long mvk_Make_Bitwise_Crc32_2 | ( | unsigned long | crc, |
unsigned long | poly, | ||
unsigned char * | pmsg, | ||
unsigned int | msg_size | ||
) |
Perform a 32 bit CRC in software.
* This is a C optimized version of the algorithm that performs a 32 bit CRC on the data block using the polynomial provided.
[in] | crc | CRC init value |
[in] | poly | CRC generator polynomial |
[in] | *pmsg | Pointer to the block of data on which we will perform the CRC |
[in] | msg_size | Number of bytes in the CRC data block |