Code CRC Reshaped to libLTE format
This commit is contained in:
parent
7e21282dec
commit
7972076b0e
3 changed files with 1 additions and 19 deletions
|
@ -58,10 +58,6 @@ typedef struct {
|
|||
unsigned int crc_out;
|
||||
} crc_t;
|
||||
|
||||
//ELIMINATE////////////////////
|
||||
unsigned int crc(unsigned int crc, char *bufptr, int len,
|
||||
int long_crc, unsigned int poly, int paste_word);
|
||||
///////////////////////////////
|
||||
|
||||
int crc_init(crc_t *crc_par);
|
||||
unsigned int crc_attach(char *bufptr, int len, crc_t *crc_params);
|
||||
|
|
|
@ -105,14 +105,6 @@ int crc_init(crc_t *crc_par){
|
|||
return(1);
|
||||
}
|
||||
|
||||
///ELIMINATE//////////////////////////
|
||||
unsigned int crc(unsigned int crc, char *bufptr, int len,
|
||||
int long_crc, unsigned int poly, int paste_word){
|
||||
return(0);
|
||||
}
|
||||
///////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
unsigned int crc_attach(char *bufptr, int len, crc_t *crc_params) {
|
||||
|
||||
|
|
|
@ -39,13 +39,7 @@ typedef struct {
|
|||
|
||||
|
||||
static expected_word_t expected_words[] = {
|
||||
//ELIMINATE///////////
|
||||
/* {5000, 24, LTE_CRC24A, 1, 0x4D0836}, // LTE CRC24A (36.212 Sec 5.1.1)
|
||||
{5000, 24, LTE_CRC24B, 1, 0x9B68F8}, // LTE CRC24B
|
||||
{5000, 16, LTE_CRC16, 1, 0xBFFA}, // LTE CRC16: 0xBFFA
|
||||
{5000, 8, LTE_CRC8, 1, 0xF8}, // LTE CRC8 0xF8
|
||||
*/
|
||||
//////////////////////
|
||||
|
||||
{5001, 24, LTE_CRC24A, 1, 0x1C5C97}, // LTE CRC24A (36.212 Sec 5.1.1)
|
||||
{5001, 24, LTE_CRC24B, 1, 0x36D1F0}, // LTE CRC24B
|
||||
{5001, 16, LTE_CRC16, 1, 0x7FF4}, // LTE CRC16: 0x7FF4
|
||||
|
|
Loading…
Reference in a new issue