You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
405 B
27 lines
405 B
#ifndef _UTIL_H_ |
|
#define _UTIL_H_ |
|
|
|
#include <iostream> |
|
#include <unistd.h> |
|
#include <stdint.h> |
|
#include <sys/time.h> |
|
using namespace std; |
|
|
|
|
|
void my_setbit(unsigned char *buf, int n, int v); |
|
|
|
unsigned char my_getbit(unsigned char *buf, int n); |
|
|
|
unsigned short float2u16(float f); |
|
|
|
short float2int16(float f); |
|
int float2int32(float f); |
|
|
|
uint32_t systerm_time(); |
|
|
|
void msleep(unsigned long msec); |
|
|
|
|
|
|
|
#endif |
|
|
|
|