galmon/bits.hh

9 lines
368 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);
2019-08-25 16:17:41 -06:00
int getbitsglonass(const unsigned char *buff, int pos, int len);
2019-08-06 04:57:06 -06:00
void setbitu(unsigned char *buff, int pos, int len, unsigned int data);
unsigned int rtk_crc24q(const unsigned char *buff, int len);