Subversion Repositories HomeAutomation

Rev

Rev 363 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 363 Rev 800
1
#ifndef CRC16_H
1
#ifndef CRC16_H
2
#define CRC16_H
2
#define CRC16_H
3
 
3
 
4
#define uint16 unsigned int
4
#define uint16 unsigned int
5
#define uint8 unsigned char
5
#define uint8 unsigned char
6
 
6
 
7
void update_crc(uint16 *p_crc, uint8 data);
7
void update_crc(uint16 *p_crc, uint8 data);
8
uint16 calc_crc(uint8 * p_data, uint16 n_bytes);
8
uint16 calc_crc(uint8 * p_data, uint16 n_bytes);
9
 
9
 
10
#endif
10
#endif
11
 
11