galmon/bits.hh

8 lines
303 B
C++
Raw Normal View History

2019-08-06 04:57:06 -06:00
#pragma once
/* lovingly lifted from RTK */
unsigned int getbitu(const unsigned char *buff, int pos, int len);
int getbits(const unsigned char *buff, int pos, int len);
void setbitu(unsigned char *buff, int pos, int len, unsigned int data);
unsigned int rtk_crc24q(const unsigned char *buff, int len);