Agora
1.2.0
Agora project
|
Go to the documentation of this file.
23 #define G_CRC_24A (0x1864CFBu;) // Normal representation
24 #define CRCSEED (0) // could be non-zero to detect leading zeros
27 #define LO(x) (unsigned char)((x)&0xff)
28 #define MID(x) (unsigned char)(((x) >> 8) & 0xff)
29 #define HI(x) (unsigned char)(((x) >> 16) & 0xff)
38 0x00000000
u, 0x01864CFB
u, 0x028AD50D
u, 0x030C99F6
u, 0x0493E6E1
u,
39 0x0515AA1A
u, 0x061933EC
u, 0x079F7F17
u, 0x08A18139
u, 0x0927CDC2
u,
40 0x0A2B5434
u, 0x0BAD18CF
u, 0x0C3267D8
u, 0x0DB42B23
u, 0x0EB8B2D5
u,
41 0x0F3EFE2E
u, 0x10C54E89
u, 0x11430272
u, 0x124F9B84
u, 0x13C9D77F
u,
42 0x1456A868
u, 0x15D0E493
u, 0x16DC7D65
u, 0x175A319E
u, 0x1864CFB0
u,
43 0x19E2834B
u, 0x1AEE1ABD
u, 0x1B685646
u, 0x1CF72951
u, 0x1D7165AA
u,
44 0x1E7DFC5C
u, 0x1FFBB0A7
u, 0x200CD1E9
u, 0x218A9D12
u, 0x228604E4
u,
45 0x2300481F
u, 0x249F3708
u, 0x25197BF3
u, 0x2615E205
u, 0x2793AEFE
u,
46 0x28AD50D0
u, 0x292B1C2B
u, 0x2A2785DD
u, 0x2BA1C926
u, 0x2C3EB631
u,
47 0x2DB8FACA
u, 0x2EB4633C
u, 0x2F322FC7
u, 0x30C99F60
u, 0x314FD39B
u,
48 0x32434A6D
u, 0x33C50696
u, 0x345A7981
u, 0x35DC357A
u, 0x36D0AC8C
u,
49 0x3756E077
u, 0x38681E59
u, 0x39EE52A2
u, 0x3AE2CB54
u, 0x3B6487AF
u,
50 0x3CFBF8B8
u, 0x3D7DB443
u, 0x3E712DB5
u, 0x3FF7614E
u, 0x4019A3D2
u,
51 0x419FEF29
u, 0x429376DF
u, 0x43153A24
u, 0x448A4533
u, 0x450C09C8
u,
52 0x4600903E
u, 0x4786DCC5
u, 0x48B822EB
u, 0x493E6E10
u, 0x4A32F7E6
u,
53 0x4BB4BB1D
u, 0x4C2BC40A
u, 0x4DAD88F1
u, 0x4EA11107
u, 0x4F275DFC
u,
54 0x50DCED5B
u, 0x515AA1A0
u, 0x52563856
u, 0x53D074AD
u, 0x544F0BBA
u,
55 0x55C94741
u, 0x56C5DEB7
u, 0x5743924C
u, 0x587D6C62
u, 0x59FB2099
u,
56 0x5AF7B96F
u, 0x5B71F594
u, 0x5CEE8A83
u, 0x5D68C678
u, 0x5E645F8E
u,
57 0x5FE21375
u, 0x6015723B
u, 0x61933EC0
u, 0x629FA736
u, 0x6319EBCD
u,
58 0x648694DA
u, 0x6500D821
u, 0x660C41D7
u, 0x678A0D2C
u, 0x68B4F302
u,
59 0x6932BFF9
u, 0x6A3E260F
u, 0x6BB86AF4
u, 0x6C2715E3
u, 0x6DA15918
u,
60 0x6EADC0EE
u, 0x6F2B8C15
u, 0x70D03CB2
u, 0x71567049
u, 0x725AE9BF
u,
61 0x73DCA544
u, 0x7443DA53
u, 0x75C596A8
u, 0x76C90F5E
u, 0x774F43A5
u,
62 0x7871BD8B
u, 0x79F7F170
u, 0x7AFB6886
u, 0x7B7D247D
u, 0x7CE25B6A
u,
63 0x7D641791
u, 0x7E688E67
u, 0x7FEEC29C
u, 0x803347A4
u, 0x81B50B5F
u,
64 0x82B992A9
u, 0x833FDE52
u, 0x84A0A145
u, 0x8526EDBE
u, 0x862A7448
u,
65 0x87AC38B3
u, 0x8892C69D
u, 0x89148A66
u, 0x8A181390
u, 0x8B9E5F6B
u,
66 0x8C01207C
u, 0x8D876C87
u, 0x8E8BF571
u, 0x8F0DB98A
u, 0x90F6092D
u,
67 0x917045D6
u, 0x927CDC20
u, 0x93FA90DB
u, 0x9465EFCC
u, 0x95E3A337
u,
68 0x96EF3AC1
u, 0x9769763A
u, 0x98578814
u, 0x99D1C4EF
u, 0x9ADD5D19
u,
69 0x9B5B11E2
u, 0x9CC46EF5
u, 0x9D42220E
u, 0x9E4EBBF8
u, 0x9FC8F703
u,
70 0xA03F964D
u, 0xA1B9DAB6
u, 0xA2B54340
u, 0xA3330FBB
u, 0xA4AC70AC
u,
71 0xA52A3C57
u, 0xA626A5A1
u, 0xA7A0E95A
u, 0xA89E1774
u, 0xA9185B8F
u,
72 0xAA14C279
u, 0xAB928E82
u, 0xAC0DF195
u, 0xAD8BBD6E
u, 0xAE872498
u,
73 0xAF016863
u, 0xB0FAD8C4
u, 0xB17C943F
u, 0xB2700DC9
u, 0xB3F64132
u,
74 0xB4693E25
u, 0xB5EF72DE
u, 0xB6E3EB28
u, 0xB765A7D3
u, 0xB85B59FD
u,
75 0xB9DD1506
u, 0xBAD18CF0
u, 0xBB57C00B
u, 0xBCC8BF1C
u, 0xBD4EF3E7
u,
76 0xBE426A11
u, 0xBFC426EA
u, 0xC02AE476
u, 0xC1ACA88D
u, 0xC2A0317B
u,
77 0xC3267D80
u, 0xC4B90297
u, 0xC53F4E6C
u, 0xC633D79A
u, 0xC7B59B61
u,
78 0xC88B654F
u, 0xC90D29B4
u, 0xCA01B042
u, 0xCB87FCB9
u, 0xCC1883AE
u,
79 0xCD9ECF55
u, 0xCE9256A3
u, 0xCF141A58
u, 0xD0EFAAFF
u, 0xD169E604
u,
80 0xD2657FF2
u, 0xD3E33309
u, 0xD47C4C1E
u, 0xD5FA00E5
u, 0xD6F69913
u,
81 0xD770D5E8
u, 0xD84E2BC6
u, 0xD9C8673D
u, 0xDAC4FECB
u, 0xDB42B230
u,
82 0xDCDDCD27
u, 0xDD5B81DC
u, 0xDE57182A
u, 0xDFD154D1
u, 0xE026359F
u,
83 0xE1A07964
u, 0xE2ACE092
u, 0xE32AAC69
u, 0xE4B5D37E
u, 0xE5339F85
u,
84 0xE63F0673
u, 0xE7B94A88
u, 0xE887B4A6
u, 0xE901F85D
u, 0xEA0D61AB
u,
85 0xEB8B2D50
u, 0xEC145247
u, 0xED921EBC
u, 0xEE9E874A
u, 0xEF18CBB1
u,
86 0xF0E37B16
u, 0xF16537ED
u, 0xF269AE1B
u, 0xF3EFE2E0
u, 0xF4709DF7
u,
87 0xF5F6D10C
u, 0xF6FA48FA
u, 0xF77C0401
u, 0xF842FA2F
u, 0xF9C4B6D4
u,
88 0xFAC82F22
u, 0xFB4E63D9
u, 0xFCD11CCE
u, 0xFD575035
u, 0xFE5BC9C3
u,
const uint32_t crc24_table_[256]
Definition: crc.h:33
GeneratorWrapper< std::tuple< Ts... > > table(std::initializer_list< std::tuple< typename std::decay< Ts >::type... >> tuples)
Definition: catch.hpp:4052
auto printf(const S &fmt, const T &... args) -> int
Definition: printf.h:631
for p
Definition: process_rx_frame.m:36
void AddCrc24(MacPacketPacked *p)
Definition: crc.cc:71
bool CheckCrc24(unsigned char *data, int len, uint32_t ref_crc)
Definition: crc.cc:103
#define G_CRC_24A
Definition: crc.h:23
int main(int argc, char *argv[])
Definition: CMakeCCompilerId.c:645
static void InitCrc24(uint32_t table[256])
#define CRCSEED
Definition: crc.h:24
Self defined functions for message storage and passing.
uint16_t len
Definition: eth_common.h:62
for i
Definition: generate_data.m:107
Plot Rx waveform for u
Definition: inspect_single_frame.m:108
uint32_t CalculateCrc24(const unsigned char *data, int len)
Definition: crc.cc:87
DoCRC()
Definition: crc.h:36
Definition: message.h:274